Log Rotation

(phil) #1

Is there a way in the beats config to rotate the log files. Running out of storage daily.

(Andrew Kroh) #2

You can configure Filebeat to rotate its own log files based on size and you can configure the number of log files to keep. By default it keeps 7 logs files of 10MB each. See the logging options for more details: https://www.elastic.co/guide/en/beats/filebeat/current/configuration-logging.html#_files_rotateeverybytes

Filebeat does not rotate or manage in any way the files that it monitors. For that I would recommend using system tools like logrotate.

(phil) #3

Thank You

(system) #4

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.