Created
July 21, 2014 17:30
-
-
Save untergeek/fade55b453520b17c644 to your computer and use it in GitHub Desktop.
conditional output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
output { | |
stdout { debug => true debug_format => "json"} | |
if [type] == 'collectd' { | |
elasticsearch { | |
cluster => "elasticsearch" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Used the above output format in my logstash config , but it shows some error.
Error:
Unknown setting 'debug' for stdout {:level=>:error}
Unknown setting 'debug_format' for stdout {:level=>:error}
Error: Something is wrong with your configuration.
Config:
output {
stdout { debug => true debug_format => "json"}
if [type] == 'collectd' {
elasticsearch {
cluster => "elasticsearch"
}
}