Hello,
I have the following filebeat.yml file:
filebeat.config:
modules:
path: ${path.config}/modules.d/*.yml
reload.enabled: false
#================================ Logging ======================================
logging.level: debug
logging.to_files: true
logging.files:
path: /var/log/filebeat
name: filebeat
keepfiles: 7
permissions: 0644
#----------------------------- Filebeat inputs --------------------------------
filebeat.inputs:
- type: docker
containers.ids:
- "*"
# - type: log
# enabled: true
# paths:
# - '/var/lib/docker/containers/*/*.log'
#----------------------------- Logstash output --------------------------------
output.logstash:
hosts: ["logstash:5044"]
There is nothing forwarded to logstash. A previous input that worked fine looked like this:
filebeat.inputs:
- type: log
enabled: true
paths:
- /usr/share/filebeat/logs/server.log
Nothing seems to work when is use type: docker in the input. The filebeat log looks like this:
2019-07-29T09:24:24.982Z INFO log/input.go:138 Configured paths: [/var/lib/docker/containers/*/*.log]
2019-07-29T09:24:24.982Z INFO input/input.go:114 Starting input of type: docker; ID: 8760737756938806393
2019-07-29T09:24:24.982Z DEBUG [cfgfile] cfgfile/reload.go:118 Checking module configs from: /usr/share/filebeat/modules.d/*.yml
2019-07-29T09:24:24.983Z DEBUG [input] log/input.go:174 Start next scan
2019-07-29T09:24:24.983Z DEBUG [cfgfile] cfgfile/reload.go:132 Number of module configs found: 0
2019-07-29T09:24:24.983Z INFO crawler/crawler.go:106 Loading and starting Inputs completed. Enabled inputs: 1
2019-07-29T09:24:24.983Z INFO cfgfile/reload.go:150 Config reloader started
2019-07-29T09:24:24.983Z DEBUG [input] log/input.go:195 input states cleaned up. Before: 0, After: 0, Pending: 0
2019-07-29T09:24:24.983Z DEBUG [cfgfile] cfgfile/reload.go:176 Scan for new config files
2019-07-29T09:24:24.983Z DEBUG [cfgfile] cfgfile/reload.go:195 Number of module configs found: 0
2019-07-29T09:24:24.983Z DEBUG [reload] cfgfile/list.go:62 Starting reload procedure, current runners: 0
2019-07-29T09:24:24.983Z DEBUG [reload] cfgfile/list.go:80 Start list: 0, Stop list: 0
2019-07-29T09:24:24.983Z INFO cfgfile/reload.go:205 Loading of config files completed.
2019-07-29T09:24:34.983Z DEBUG [input] input/input.go:152 Run input
2019-07-29T09:24:34.983Z DEBUG [input] log/input.go:174 Start next scan
2019-07-29T09:24:34.983Z DEBUG [input] log/input.go:195 input states cleaned up. Before: 0, After: 0, Pending: 0