Separate logfiles for Logstash


#1

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.


(Magnus Bäck) #2

You need to run multiple Logstash instances.


#3

Ok. Thank you very much.


(system) #4

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