logstash-plugins / logstash-output-file

Apache License 2.0
23 stars 53 forks source link

Must support codec use #7

Closed wiibaa closed 8 years ago

wiibaa commented 9 years ago

From LOGSTASH-1795

Using following config:

output {
  if [type] == 'apache_access' {
    file {
      path           => "/tmp/logstash.out"
      codec          => oldlogstashjson {}
    }
    file {
      path           => "/tmp/logstash.out.json"
      codec          => json {}
    }
    file {
      path           => "/tmp/logstash.out.plain"
      codec          => plain {}
    }
  }
}

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

EdHurtig commented 9 years ago

:+1: I just ran into this today when using the file output. This doesn't seem like it should be that hard... Will take a look and see

purbon commented 8 years ago

Fixed with #9