Printing stdout {codec => rubydebug} only on error

How can I control the output section of a logstash config to only print the stdout {codec => rubydebug} on an error? for example , on a _dateparsefailure.

output { if "_dateparsefailure" in [tags] { stdout {} } }

Badger,
Works like a charm.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.