Hello guys,
I am new to logstash and was trying to drop few events which do not match a criteria.
Even though logstash is dropping those events, but still it keeps on sending an acknowledgement about the deleted event which is annoying. Can i drop these events without any logs on kafka?
I am atatching my conf file below:-
input {
beats {
port => 6001
}
}
filter {
kv {
source => "message"
field_split => ","
value_split => ":"
remove_char_key => "[]"
remove_char_value => "[]"
}
mutate {
convert => {
"Severity" => "integer"
"Class" => "integer"
"ExpireTime" => "integer"
"Tally" => "integer"
}
}
if ([Manager] == "ConnectionWatch" or [Manager] == "OMNIbus Self Monitoring @AGG_P") { drop{} }
}
output {
kafka {
codec => json
bootstrap_servers => "10.21.0.110:9092,10.21.0.110:9093"
topic_id => "new_data"
}
}