Hey,
I am setting up ELK with filebeats. I created some pipelines (apache, ssh..) in logstash. In my webserver, I setting up filebeat.
I have multiple config file that I moved in a created directory in "/etc/filebeat/conf.d/*" :
ssh.yml :
filebeat.prospectors:
- type: log
paths:
- "/var/log/auth.log"
fields:
log_type: ssh
pipeline: ssh
enabled: true
filebeat.config.modules:
path: ${path.config}/modules.d/*.yml
reload.enabled: false
setup.template.settings:
index.number_of_shards: 3
output.logstash:
hosts: ["192.168.10.1:5443"]
ssl.certificate_authorities: ["/etc/ssl/logstash-forwarder.crt"]
apache.yml :
filebeat.prospectors:
- type: log
paths:
- "/home/user/http/logs/access.log"
fields:
log_type: http
pipeline: apache
enabled: true
filebeat.config.modules:
path: ${path.config}/modules.d/*.yml
reload.enabled: false
setup.template.settings:
index.number_of_shards: 3
output.logstash:
hosts: ["192.168.10.1:5444"]
ssl.certificate_authorities: ["/etc/ssl/logstash-forwarder.crt"]
How I can say to filebeat : "Go in conf.d directory and launch the config files" ?
I tested this config in filebeat.yml :
filebeat.config.prospectors:
enabled: true
path: /etc/filebeat/conf.d/*.yml
but in the logs, he said to me that "Please define on under the output section".
Thank you !