Below are my 2 config file but when i add mutet it stops working
----------config 1
input {
tcp {
'port' => '9563'
}
}
filter {
json {
source => 'message'
}
mutate {
add_field => {
"componentId" => "%{component}"
}
}
if [component] == 1 {
mutate {
replace => [ "component", "datawarehouse" ]
}
}else if [component] == 2 {
mutate {
replace => [ "component", "Push Notification" ]
}
} else {
mutate {
replace => [ "component", "others" ]
}
}
}
config 2 for output
output {
elasticsearch { hosts => ["localhost:9200"] }
s3 {
access_key_id => ""
secret_access_key => ""
bucket => "elk-logs"
endpoint_region => "us-east-1"
size_file => "204800"
time_file => "5"
canned_acl => "private"
prefix => "pushnotification-logs/" }
}