Open fenchu opened 6 years ago
This is something you’ll have to fix in your own environment. Logstash simply logs to stdout, and by default Docker will keep this output indefinitely. Setting the max-size
and max-file
parameters or using another Docker logging driver are possible solutions, and both are independent from the Logstash container image itself.
Hi
If you have a lot of activity in logstash, the logfiles can grow very large and fill up entire disk. This is the default stdout log which you access when doing docker logs not log4j2.conf
We have recently seen the docker host running out of disk very frequently until we limited it at runtime with
--log-opt max-size=100m --log-opt max-file=10
for a max of 1GB logPlease see:
https://docs.docker.com/config/containers/logging/json-file/#options