logstash tutorial weirdness

So i’m running through the logstash simple tutorial and the first example throws this error:

Deprecated config item "debug_format" set in LogStash::Outputs::Stdout {:name=>"debug_format", :plugin=><LogStash::Outputs::Stdout --->, :level=>:warn}
Invalid setting for stdout output plugin:

  output {
    stdout {
      # This setting must be a ["ruby", "dots"]
      # Expected one of ["ruby", "dots"], got ["json"]
      debug_format => "json"
  } {:level=>:error}

I checked the stdout output plugin documentation and found that debug_format only accepts “ruby” or “dots” not “json”. You’d think they’d have sorted this… but no.

The configuration file you’re supposed to make is this:

input { stdin { type => "stdin-type"}}
output { stdout { debug => true debug_format => "json"}}

But this is the working one:

input { stdin { type => "stdin-type"}}
output { stdout { debug => true }}

Basically, get rid of the debug_format bit.

#fail #Linux #logstash #Work