I set up my filebeat yml with the following options.
logging.level: info
# logging.to_syslog: false
logging.to_files: true
logging.files:
# path: /opt/pki/filebeat/logs
path: /tmp/filebeat_logs
name: filebeat
rotateeverybytes: 10485760
keepfiles: 7
When I execute the following command line.
/opt/pki/filebeat/filebeat -e -c /opt/pki/filebeat/filebeat.yml -d "publish" >/tmp/filebeat_logs/filebeat_log_cmd.txt 2>&1 &
The /tmp/filebeat_logs/filebeat_log_cmd.txt file is create from the standrd out/error. But the filebeat lof file is never created.
If I remove the redirection to standard out/err. The command will log its output to the terminal window.
We are using filebeat version 5.5.2