Skip to content

Instantly share code, notes, and snippets.

@jordansissel
Created January 14, 2012 16:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jordansissel/1611956 to your computer and use it in GitHub Desktop.
Save jordansissel/1611956 to your computer and use it in GitHub Desktop.
% 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