Skip to content
Create a gist now

Instantly share code, notes, and snippets.

% ruby bin/logstash agent -e 'filter { grok { named_captures_only => false pattern => "Hello, %{foo=.*}" type=> stdin} }'
Hello, world
{"@source"=>"stdin://snapple.home/", "@type"=>"stdin", "@tags"=>[], "@fields"=>{"foo"=>["world"]}, "@timestamp"=>"2012-01-14T16:30:12.279979Z", "@source_host"=>"snapple.home", "@source_path"=>"/", "@message"=>"Hello, world"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.