Hello Team,
Good noon!
Recently, I've upgraded my Logstash to 8.11.3 version. Starting from Logstash 8.11 version, Logstash Integration Plugin is available. I was trying to use the Logstash input plugin to receive the data from another Logstash.
as per the elastic documentation, we can use the ** add_field** and id in the logstash input plugin and that will add the filed to the every event.
But, add_filed and Id is not getting added in the event. Here attaching my logstash config, could you please someone check and help me to resolve this issue?
Elastic documentation link: Logstash input plugin | Logstash Reference [8.12] | Elastic
Logstash config:
input {
logstash {
port => 9801
host => "0.0.0.0"
ssl_enabled => false
id => "logstash-0"
add_field => {
"from_other_logstash" => "yes"
}
}
}
filter {
mutate {
add_field => {
"data_coming_from" => "Logstash-8"
}
}
}
output {
stdout {
codec => rubydebug {
metadata => true
}
}
}
Thanks
Siva