I'm using Logstash for 4 different sources on a single node.
The config file for these sources are very similar and look like this :
#####################
input {
file {
path => "/....../source1/*.log"
codec => "plain"
}
}
filter {
.....
}
output {
elasticsearch {
}
}
########################
Rather than having a unique logfile ( /var/log/logstash/logstash-plain.log) for all these sources, I would like to have one file per source (based on the input location).
Is this possible ? If so, how do I proceed ?
Thanks in advance.
Samia.