Hello,
I have configured logstash using one tcp input as follows:
input {
#logs01
tcp {
type => "logs"
codec => "line"
port => 9916
add_field => { "event_dataset" => "logs_01" }
}
}
With this configuration, we are expecting nearly 100 EPS from this source and everything is working as expected.
The thing is that we are expecting more logs from the same source on different port, so after adding another tcp input in the configuration file, logstash starts to increase the CPU utilization to more than 100% and we start to face a gap of time between the event indexed time and the event received timestamp in logstash.
input {
#logs01
tcp {
type => "logs"
codec => "line"
port => 9916
add_field => { "event_dataset" => "logs_01" }
}
#logs02
tcp {
type => "logs"
codec => "line"
port => 9917
add_field => { "event_dataset" => "logs_02" }
}
}
What could be the issue here? It seems something related to adding more than one tcp input in logstash. Could you help me with this issue?
Thank you.