title: logstash output to file and ignores codec
body: <p>could please someone explain to me, why logstash keeps ignoring "codec => plain => format" setting, I am trying to set? </p>
  
  <p>Cfg file I am using:</p>
  
  <pre><code> input {
          gelf {
                  host =&gt; "[some ip]"
                  port =&gt; 12201
          }
  }
  
  output {
          elasticsearch {
                  host =&gt; "[some ip]"
                  bind_port =&gt; "9301"
          }
  
          file {
                  codec =&gt; plain {
                          format =&gt; "%{[time]} | %{[severity]} : /%{[thread]}/ %{[loggername]} (%{[sourcemethodname]}) - %{[message]}"
                  }
                  path =&gt; "/Users/[some user]/logs/%{host}/%{facility}-%{+YYYY-MM-dd}.log"
          }
  }
  </code></pre>
  
  <p>I thought I used the wrong format, tried different combinations like "%{time}" for fields and even tried to use constant text like:</p>
  
  <pre><code>codec =&gt; plain {format =&gt; "Simple line"}
  </code></pre>
  
  <p>But nothing seems to work. It outputs to the elasticsearch fine, create folder/files, but outputs it as JSON.</p>
  
  <p>If anyone knows what is going on with it, please help.
  Thanks.</p>