2 codec in one filter plugin

Hi!

I would like to ask question about filter plugin

I am using logstash 5.0.0 alpha4

I am in a situation where I have to set multiline codec and plain codec in single file module.
This seems to not work since logstash is not recognizing the plain codec.

file {
path => ["/var/log/logstash/data/log/g_02//always/"]
start_position => "beginning"

codec => multiline {
  pattern => "----------------------\+|Present Rot \[360deg\]|Total   Rot \[360deg\] "
  negate  => false
  what    => previous
}

codec => plain {
  charset => "ISO-8859-1"
}

Is my configuration wrong?

You can't do that, a codec can only apply to a single input.

@warkolm

Thank you for the reply.
I will use filebeat in front of logstash.