Hi,
Thank you for your amazing products. I just started using Central management for beats and got everything working except for output to Elasticsearch cloud. I looked at this issue but it doesn't seem to be related to my issue, as I'm trying to output to cloud. After configuring beat in central management, the management.yml on the filebeat file looks like this:
configok: true
configs:
- type: filebeat.inputs
blocks:
- raw:
enabled: true
multiline.match: after
multiline.negate: false
multiline.pattern: ^[[:space:]]
paths:
- /emento/logs/*/system.sync.log
pipeline: system.sync.log
type: log
- raw:
enabled: true
paths:
- /emento/logs/*/audit.sync.log
pipeline: audit.sync.log
type: log
- raw:
enabled: true
paths:
- /emento/logs/*/access.sync.log
pipeline: access.sync.log
type: log
- raw:
enabled: true
multiline.match: after
multiline.negate: false
multiline.pattern: ^[[:space:]]
paths:
- /emento/logs/*/sensitivity.log
pipeline: sensitivity.log
type: log
- type: output
blocks:
- raw:
elasticsearch:
hosts:
- https://***.eu-central-1.aws.cloud.es.io:9243
password: ****
username: elastic
output: elasticsearch
(I masked the elasticsearch host url and password with *'s )
The filebeat log does not reveal any issues whatsoever, when receiving the new config:
2019-01-02T13:07:28.861Z INFO [centralmgmt] management/manager.go:176 New configurations retrieved
2019-01-02T13:07:28.861Z INFO [centralmgmt] management/manager.go:213 Applying settings for filebeat.inputs
2019-01-02T13:07:28.872Z INFO log/input.go:138 Configured paths: [/emento/logs/*/system.sync.log]
2019-01-02T13:07:28.872Z INFO input/input.go:114 Starting input of type: log; ID: 1093171485359595733
2019-01-02T13:07:28.873Z INFO log/input.go:138 Configured paths: [/emento/logs/*/audit.sync.log]
2019-01-02T13:07:28.873Z INFO input/input.go:114 Starting input of type: log; ID: 11179040793685463107
2019-01-02T13:07:28.873Z INFO log/input.go:138 Configured paths: [/emento/logs/*/access.sync.log]
2019-01-02T13:07:28.873Z INFO input/input.go:114 Starting input of type: log; ID: 4488876039308697840
2019-01-02T13:07:28.874Z INFO log/input.go:138 Configured paths: [/emento/logs/*/sensitivity.log]
2019-01-02T13:07:28.874Z INFO input/input.go:114 Starting input of type: log; ID: 11261006042038773783
2019-01-02T13:07:28.874Z INFO [centralmgmt] management/manager.go:213 Applying settings for output
2019-01-02T13:07:28.877Z INFO elasticsearch/client.go:163 Elasticsearch url: https://****.eu-central-1.aws.cloud.es.io:9243
2019-01-02T13:07:28.880Z INFO [centralmgmt] management/manager.go:213 Applying settings for filebeat.modules
2019-01-02T13:07:28.880Z INFO [centralmgmt] management/manager.go:149 Storing new state
2019-01-02T13:07:28.894Z INFO log/harvester.go:254 Harvester started for file: /emento/logs/central/access.sync.log
2019-01-02T13:07:28.895Z INFO log/harvester.go:254 Harvester started for file: /emento/logs/config/system.sync.log
2019-01-02T13:07:28.896Z INFO log/harvester.go:254 Harvester started for file: /emento/logs/central/audit.sync.log
2019-01-02T13:07:28.896Z INFO log/harvester.go:254 Harvester started for file: /emento/logs/central/sensitivity.log
2019-01-02T13:07:28.896Z INFO log/harvester.go:254 Harvester started for file: /emento/logs/contenteditor/system.sync.log
2019-01-02T13:07:28.901Z INFO log/harvester.go:254 Harvester started for file: /emento/logs/config/audit.sync.log
2019-01-02T13:07:28.905Z INFO log/harvester.go:254 Harvester started for file: /emento/logs/nocourse/sensitivity.log
2019-01-02T13:07:28.905Z INFO log/harvester.go:254 Harvester started for file: /emento/logs/contenteditor/audit.sync.log
2019-01-02T13:07:28.905Z INFO log/harvester.go:254 Harvester started for file: /emento/logs/nocourse/system.sync.log
2019-01-02T13:07:28.909Z INFO log/harvester.go:254 Harvester started for file: /emento/logs/nocourse/audit.sync.log
2019-01-02T13:07:28.912Z INFO log/harvester.go:254 Harvester started for file: /emento/logs/nophone/audit.sync.log
2019-01-02T13:07:28.913Z INFO log/harvester.go:254 Harvester started for file: /emento/logs/nophone/system.sync.log
2019-01-02T13:07:28.913Z INFO log/harvester.go:254 Harvester started for file: /emento/logs/central/system.sync.log
2019-01-02T13:07:29.913Z INFO pipeline/output.go:95 Connecting to backoff(elasticsearch(https://****.eu-central-1.aws.cloud.es.io:9243))
2019-01-02T13:07:29.974Z INFO elasticsearch/client.go:713 Connected to Elasticsearch version 6.5.1
The setup works when manually configuring the filebeat without central management. Let me know if I'm doing anything wrong.
Thanks