Some grep snippets

Warning these snippets will not work until https://github.com/logstash/logstash/pull/403 is merged