Can logstash configuration have two different inputs with the same port?


(Diman Ghazi) #1

Hi,

I am fairly new in Logstash. I am trying to have two inputs with the same port but different type and tag. e.g:

input {
tcp {
port => 5000
type => "x"
tags => ["x"]
}
log4j {
port => 5000
type => "y"
tags => ["y"]
}
}
But logstash doesn't like it and throws this error: " Address already in use - bind - Address already in use: bind"
I am wondering if there is anyway that this can be done.

Thanks


(Mark Walkom) #2

Nope, you can only use the one port once.


(system) #3