The logging from the "02-snmp.conf" configuration file is also written in the "filebeat-. . . " index.
The logging from the "05-filebeat.conf" configuration file is also written in the "snmp-. . . " index.
I do not understand why? Do you have a tip for me?
root@dsme01:~# cat /etc/logstash/pipelines.yml
# This file is where you define your pipelines. You can define multiple.
# For more information on multiple pipelines, see the documentation:
# https://www.elastic.co/guide/en/logstash/current/multiple-pipelines.html
## - pipeline.id: main
## path.config: "/etc/logstash/conf.d/*.conf"
- pipeline.id: snmp
path.config: "/etc/logstash/conf.d/02-snmp.conf"
pipeline.workers: 3
- pipeline.id: filebeat
path.config: "/etc/logstash/conf.d/05-filebeat.conf"
queue.type: persisted
However, in both "Data views"
filebeat-* and snmp-* all logging entries are displayed under Discover.
Just why?
I do not get it. I'll try it again.
I want everything that I log in snmp to only be displayed in the DataView / Index snmp-.
Everything that is logged in beats is only displayed in the DataView / Index filbeat-.
Only when I comment out a file (either 02-snmp.conf or 05-filebeat.conf) the log entries no longer appear in the other DataView/Index.
I just can not manage it.
I commented out the following entry in logstash.yml:
path.config: /etc/logstash/conf.d/*.conf
Moved both conf files from "/etc/logstash/conf.d/" folder to different subdirectories.
Since then, what belongs to snmp is written/displayed in Index / DataView snmp-* and everything that belongs to filebeat-* is displayed in Index / DataView.
Interesting. Something's still a little odd but glad you got it to work.... I thought if you named them separately it always would keep them separate only to take a look at that.
I think this is the problem
path.config: /etc/logstash/conf.d/*
If you took that out and then name them individually in the pipelines.yml I think it would work as well.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.