[solved] Multiple logstash config file

Thank you for the help.
I added a tag while doing the file "input" and applied "if" condition for those tags .
PFB the snippet from logstash config file-
input {
file {
path => "BatchData\Batch_Raw_Data.csv"
tags => [ "batchdata" ]
start_position => "beginning"
}
}
output {
if "batchdata" in [tags]{
elasticsearch {
action => "index"
index => "IndexName"
}
}}

Regards,
Prateek

3 Likes