# the json inputroot@monitoring:~#cattmp.json
{"message":{"someField":"someValue"}}# the logstash configuration fileroot@monitoring:~#cat/etc/logstash/conf.d/test.conf
input{tcp{port=>5400codec=>json
}}filter{}output{stdout{codec=>rubydebug
}}# starting the logstash server/opt/logstash/bin/logstash-f/etc/logstash/conf.d/test.conf
# sending the json to logstash with netcatnclocalhost5400<tmp.json
# the logstash output via stdout{"message"=>{"someField"=>"someValue"},
"@version"=>"1",
"@timestamp"=>"2016-02-02T13:31:18.703Z",
"host"=>"0:0:0:0:0:0:0:1",
"port"=>56812}