Hello ES users, i have filebeat instance sending one source log to ES via logstash pipeline. Now, i want to add another file on filebeat input list and use the same logstash pipeline but write to a different new index. Can someone please share the ideal approach on how to differentiate these 2 files and at what level? Is it filter level on LS pipeline or is it at output level? Thanks.
Use either conditionals, or
sprintf as mentioned in Accessing Event Data and Fields in the Configuration | Logstash Reference [7.12] | Elastic