Page MenuHomePhabricator

Envoy (admin) logs are not rotated/expired
Open, Needs TriagePublic

Description

Looks like e.g. /var/log/envoy/admin-access.log is never rotated/expired, likely other logs too in the same directory:

root@graphite1004:~# tail -2 /var/log/envoy/admin-access.log 
[2021-04-01T10:49:45.065Z] "GET /stats/prometheus HTTP/1.1" 200 - 0 87631 15 - "10.64.16.38" "Prometheus/2.7.1+ds" "-" "graphite1004:9631" "-"
[2021-04-01T10:49:45.080Z] "GET /stats/prometheus HTTP/1.1" 200 - 0 87633 9 - "10.64.0.123" "Prometheus/2.7.1+ds" "-" "graphite1004:9631" "-"
root@graphite1004:~# head -2 /var/log/envoy/admin-access.log 
[2020-03-09T08:30:45.098Z] "GET /stats/prometheus HTTP/1.1" 200 - 0 76986 18 - "10.64.0.123" "Prometheus/2.7.1+ds" "-" "graphite1004:9631" "-"
[2020-03-09T08:31:45.066Z] "GET /stats/prometheus HTTP/1.1" 200 - 0 77015 6 - "10.64.0.123" "Prometheus/2.7.1+ds" "-" "graphite1004:9631" "-"
root@graphite1004:~# ls -la !$
ls -la /var/log/envoy/admin-access.log
-rw-r--r-- 1 envoy envoy 167610376 Apr  1 10:49 /var/log/envoy/admin-access.log
root@graphite1004:~#