Filebeat 6.1 can't store log output to file

Hi there,

When i run filebeat 6.1 with command: ./filebeat -e -c filebeat.yml -d "publish"
I got the events which pushed to ES but i can't get filebeat log output. Could plz help me?
My filebeat config as below:

 filebeat.prospectors:

- type: log
  enabled: true
  paths:
    - /home/ubuntu/access.log

filebeat.config.modules:
  path: ${path.config}/modules.d/*.yml

  reload.enabled: false

setup.kibana:
  host: "localhost:5601"

output.elasticsearch:
  hosts: ["localhost:9200"]

logging.level: debug
logging.to_files: true
logging.to_syslog: false
logging.files:
  path: /home/ubuntu/filebeat-6.1.0-linux-x86_64/logs
  name: mybeat.log
  keepfiles: 7
  permissions: 0644

If you use the -e option the log output is disabled.

I got it.
Thanks ruflin.

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