I have been sending two different log files to logstash from two different source directories. One type is an "Index log" that is always named "IndexService*.log", for example:
The specs on the job have just changed where both kind of logs need to be prospected from the same directory. Is there some kind of if/else logic I can apply to filter the files by filename and properly package them for logstash?
hey @mgolubov55
you can use regex patterns in paths in a way to specify that IndexServiceLogs starts with index service
other logs do not start with index service.
for more capable parsing and condition you can use Logstash
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.