Filebeat is not creating a log file

I set up my filebeat yml with the following options.

logging.level: info
# logging.to_syslog: false
logging.to_files: true
  # 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

You've posted this in #elasticsearch, you may want to edit the thread and move it to #beats:filebeat if that wasn't what you intended :slight_smile:

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