Skip to content

Instantly share code, notes, and snippets.

@knewter
Created March 28, 2014 19:22
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 knewter/9840928 to your computer and use it in GitHub Desktop.
Save knewter/9840928 to your computer and use it in GitHub Desktop.
logstash json attempt (logstash 1.2.2)

Alright, so I run logstash 1.2.2 like so:

$ java -jar ~/software/solrlogmanager/logstash_deploy/logstash-1.2.2-flatjar.jar agent -f logstash.conf 

And it outputs this:

Using milestone 2 input plugin 'file'. This plugin should be stable, but if you see strange behavior, please let us know! For more information on plugin milestones, see http://logstash.net/docs/1.2.2/plugin-milestones {:level=>:warn}
Using milestone 1 codec plugin 'json'. This plugin should work, but would benefit from use by folks like you. Please let us know if you find bugs or have suggestions on how to improve this plugin.  For more information on plugin milestones, see http://logstash.net/docs/1.2.2/plugin-milestones {:level=>:warn}
^CInterrupt received. Shutting down the pipeline. {:level=>:warn}

But then it just sits there and I get no more output - expected to see the event output to stdout.

{"@timestamp": "2012-08-22T14:35:19-0700","client": "127.0.0.1","duration_usec": 532,"status": 200,"action": "click_search","user": "johnboy"}
input {
file {
path => "/home/jadams/projects/uspto/USPTO_dir_api/analytics/example_logfile.log"
type => ui
# This format tells logstash to expect 'logstash' json events from the file.
codec => json
}
}
output {
stdout { debug => true codec => "rubydebug" }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment