Suppose I have two sets of data i.e. user & products. I have created two different indexes for them on ES. Now I want to use one logstash conf file that will have some condition to differentiate the data and send them to their related index ie users data to user index and product data to product index.
If you want to process both files in the same logstash configuration then you can add a second file input. Then in the filter section test the path field on the event
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.