bpaquet / node-logstash

Simple logstash implmentation in nodejs : file log collection, sent with zeromq
Other
517 stars 141 forks source link

[ Drop message not matched by regex ] #133

Closed jerome83136 closed 2 years ago

jerome83136 commented 8 years ago

Hi, I can't find a way to drop messages that doesn't match my regex filter.

I know that I can add arbitrary tags and fields to filter them; but with that config the only way I have found to drop unwanted events; is to process the tags with a IF condition to decide to send events to Elasticsearch or not; which is time consuming.

Is there another way to drop events that doesn't match the regex ?

Thank you for your help. Best regards Jérôme