file output ignores codec


Using following config:

Expected: each event written in 3 different formats.
Actual result: all written in (new) json format.

This snippet from /lib/logstash/outputs is probably the bad guy:

Maybe output plugins not supporting codecs should not accept the codec parameter? It is currently part of the base class, which is probably a bad thing.

Bit of context: I am trying to upgrade Logstash from 1.1.13 (to 1.3.2) without wanting to upgrade ES/Kibana. So I need a working oldlogstashjson setup.


Logstash Developers


Renzo Toma (moved to gchat)

Affects versions