Decompose Logstash json message into fields -


it have logfile stores event timestamp , json message. example:

timestamp {"foo": 12, "bar": 13}

i decompose keys (foo , bar) in json part fields in logstash output.

i'm aware can set format field in logstash file filter json_event in case have include timestamp in json. there json filter, adds single field complete json data structure, instead of using keys.

any ideas how can done?

try latest logstash 1.2.1 , use codec value parse json events directly.

input {     file {         type => "tweetfile"         path => ["/home/nikhil/temp/feed/*.txt"]         codec => "json"     } } filter{     json{         source => "message"         target => "tweet"     } } output {     stdout { }     elasticsearch { embedded => true } } 

Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

php - MySQLi multi_query results for later use -