Hi I am trying to replace field "component " but not showing in output what exactly i am doing wrong . I am new to ELK. below is my logstash config.
input {
tcp {
'port' => '9563'
}
}
filter {
json {
source => 'message'
}
if [component] == "0" {
mutate {
replace => [ "component", "others" ]
}
}
if [component] == "1" {
mutate {
replace => [ "component", "datawarehouse" ]
}
}
}
output {
stdout { codec => rubydebug }
elasticsearch{ hosts => "XX.xx.xx.xx:9200" }
file {
'path' => '/tmp/output.log'
}
}