Having Logstash reading JSON Having Logstash reading JSON json json

Having Logstash reading JSON


I found out that logstash will automatically detect JSON byt using the codec field within the file input as follows:

input {   stdin {   type => "stdin-type" } file {    type => "prodlog"    # Wildcards work, here :)    path => [ "/root/isaac/Mylogs/testlog.log"]    codec => json }}output {  stdout { debug => true }  elasticsearch { embedded => true }}

Then Kibana showed the fields of the JSON perfectly.