I am using Elasticstack 7.9 on-prem - I am wondering about a scenario if it's possible
I have 2 services on 1 VM - one is an haproxy service and the other is an nginx service
Both services generate log files on disk
I want to configure Filebeat so that :
haproxy logs are sent directly to Logstash (where I have some ruby code that reads from a DB and enriches the log data) and
nginx logs are sent directly to Elasticsearch since I using the nginx module to parse the logs correctly and that is sufficient
It seems that I can send either to logstash or elasticsearch - a workaround could be to check the event data and forward the nginx data as-is to elasticsearch - but I was wondering if there is a setting in filebeat for separate output destinations
It is not possible, filebeat only supports one output.
What you can do in your case is run two filebeat instances one for the nginx logs and another for the haproxy log, or send both to logstash and do not apply any filter to the nginx logs.
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.