Filebeat auto-deletion of files when harvesting of files complete or remove log file older than 7 days

(Saurabh Sharma) #1

I am facing one critical issue with filebeat, There too much logs available in my log directory, How can I delete the logs older than 7 days

(Mark Walkom) #2

You need to use something other than FIlebeat for this.

(Debashis Mondal) #3

Hi @Saurabh_Sharma1,

Do you want to delete the log files or you want to ignore harvesting those files which are older than 7 days?

If you want to ignore you can do it using "ignore_older" parameter


(system) closed #4

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