Now data is in data1 folder and moving to data1 index
What we need is we will store data in 4 folder 1)data1 2)data2 3)data3 4)data4 all four folder data should move to four different index
AFAIK events from filebeat should have a source field with the original path. So you could use a grok pattern to extract the folder name from that, save this information in [@metadata][logfolder] and then set the index setting in the ES output to %{[@metadata][logfolder]}. Then you could just set the path for filebeat to D:\HotelHub_ELK\Data*.txt to read all folders starting with Data.
Another option would be to have one filebeat input for every folder and add different fields to them.
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.