I'm using CentOS 6.8 and have installed filebeat (version 1.3.1). My configuration is:
---
filebeat:
prospectors: [{"paths": ["/var/log/*.log"], "input_type": "log"}]
registry_file: /var/lib/filebeat/registry
output:
{"console": {"pretty": false}}
shipper:
logging:
to_syslog: false
to_files: true
files:
path: /var/log/beat/
name: filebeat
# Configure log file size limit. If limit is reached, log file will be
# automatically rotated
rotateeverybytes: 10485760 # = 10MB
# Number of rotated log files to keep. Oldest files will be deleted first.
keepfiles: 7
# Enable debug output for selected components. To enable all selectors use ["*"]
# Other available selectors are beat, publish, service
# Multiple selectors can be chained.
#selectors: [ ]
# Sets log level. The default log level is error.
# Available log levels are: critical, error, warning, info, debug
#level: error
When starting with service script it just exits. If I run filebeat-god with '-f' (foreground option) it works:
filebeat-god -f -r / -n -p /var/run/filebeat.pid -- /usr/bin/filebeat -c /etc/filebeat/filebeat.yml
And when I run it with filebeat command directly:
/usr/bin/filebeat -c /etc/filebeat/filebeat.yml
My guess that this is bug.