Hi. I have a requirement to pull in multiple files from the same host, but in Logstash they need to follow different input/filter and output paths.
I was going to setup 2 Filebeats on this Unix hosts but that doesn't seem too efficient.
Hi. I setup another Prospectors in /etc/filebeat/filebeat.yml and can see it in Kibana.
Below is what I did in the config file:
filebeat:
prospectors:
# Each - is a prospector. Below are the prospector specific configurations
-
paths:
- /var/log/rsyslog.log.file
input_type: rsyslog.log01
-
paths:
- /var/log/*.log
- /var/log/syslog
- /var/log/apt/*
input_type: syslog
As documented here, input_type supports only two possible values -- log and stdin. Try using document_type or fields (as previosly suggested by warkolm).
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.