I have a huge json file in a log for one success api call. I am able to see that response at when there is no filter is applied over it.(seeing as string)
***Small json are working as intended.
When I am applying the json filter, it is not coming at the logstash output (I have tried writing the output to a file for confirming).
Is there any logstash configuration which needs to be taken care.
My config:
input {
kafka {
bootstrap_servers => 'server1:9092, server2:9092, server3:9092' #add the kafka hosts here
topics => ["xxxxxxxxxx"]
codec => "json"
}
}
filter {
json {
source => "message"
skip_on_invalid_json => "true"
}
mutate {
add_field => {"index_name" => '%{type}'}
add_field => {"type_name" => '%{type}'}
}
}
output {