File output plugin always outputs json

I'm reading from a plain text file and want to write the same plain text. So I wrote this:

output {
file {
path => ....
codec => line { format => "%{message}" }
}
}

Looks like the file plugin ignores the settings and outputs json. Also if I modify the above pattern to be "blabla %{message}" then the blabla part will never appear.

If I use plain stdout plugin then that works. So the issue is with the file plugin.

I've also tried codec => plain, text and other combinations, nothing helped.

Using file output pkugin 2.0.2

I solved the issue by moving to logstash 1.5.5 which still supports the message_format parameter.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.