In my Logstash shipper, I want to filter out lines commented out by a hash symbol:
I managed to use the grep filter, but since it is discouraged (out of service), I am trying to get the grok filter to do this instead. This filter does not work:
grok { match => ["message", "^#.*"] drop_if_match => true }
I also tried to place the regex in the user template file, but didn't help. Any ideas?
regex logging logstash logstash-grok
Jonas byström
source share