How to manage filebeat logging?

I want to roll the os-filebeat-out.log, my Logging section in filebeat.yml looks like:

logging.level: info
logging.to_files: true
     path:  /path/filebeat-7.14.1-linux-x86_64
     name: os-filebeat-out.log
     rotateeverybytes: 10485760
     permissions: 0600
     keepfiles: 7
     rotateonstartup: true
     suffix: count
     interval: 1s

I am starting filebeat as

./filebeat -e >> os-filebeat-out.log 2>&1 &

but the file is not changing the permission nor rotating the file:

-rw-r--r--  1 user1 grp  93799652 Nov 25 13:36 os-filebeat-out.log

How can I manage my os-filebeat-out.log file?

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