Hello there
I have apache logs in which are documents that I want to remove completely.
Whole documents not fields so I do not want to use remove_field in mutate.
I have tried drop:
filter {
if "field_name" == "exact_value" {
drop {}
}
}
so it looked like this in final:
filter {
if "url.original" == "/im/nagios.plc" {
drop {}
}
}
But it will not work, the documents are still there.
I have also tried drop { } with space inside.
I have tried [url.original] and [url.original] ==>
Logs of logstash will not show any problems.
I prefer not to create tags and then delete the documents with tags but if there will be no other way I will do it
Thank you for help!