public
Created

  • Download Gist
gistfile1.txt
1 2 3 4
% 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"}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.