Separate logfiles for Logstash

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.

You need to run multiple Logstash instances.

Ok. Thank you very much.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.