Open ppf2 opened 8 years ago
Also, will be nice to clarify that when using plain codec (or the default), it writes the event to Kafka as a single plain string, which means that:
output received {:event=>{"message"=>"Hello world!", "@version"=>"1", "@timestamp"=>"2016-05-03T07:26:54.695Z", "host"=>"Iceman", "sequence"=>499}, :level=>:debug, :file=>"(eval)", :line=>"22", :method=>"output_func"}
Will end up being written to Kafka as
2016-05-03T07:26:54.695Z Iceman Hello world!
i.e. with the timestamp and host information appended to the beginning of the message (i.e. the end user will have to grok this back from the indexer pipeline).
thanks @ppf2, I agree. We do not document codec-plain
enough
If I want to get the entire message to be written to the Kafka, what should be the codec configuration ? codec => json ?
Doc paragraph above says that the default codec is json, but it is actually plain.