Add conditional coding to set correct default for codec (#9363)

Fix conditional coding

Fixes #9139
This commit is contained in:
DeDe Morton 2018-04-11 17:23:49 -07:00 committed by GitHub
parent 528ff45f1f
commit ad9bb5fdae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View file

@ -29,7 +29,12 @@ Add a field to an event
===== `codec`
* Value type is <<codec,codec>>
ifdef::default_codec[]
* Default value is +"{default_codec}"+
endif::[]
ifndef::default_codec[]
* Default value is `"plain"`
endif::[]
The codec used for input data. Input codecs are a convenient method for decoding your data before it enters the input, without needing a separate filter in your Logstash pipeline.

View file

@ -15,7 +15,12 @@ The following configuration options are supported by all output plugins:
===== `codec`
* Value type is <<codec,codec>>
ifdef::default_codec[]
* Default value is +"{default_codec}"+
endif::[]
ifndef::default_codec[]
* Default value is `"plain"`
endif::[]
The codec used for output data. Output codecs are a convenient method for encoding your data before it leaves the output, without needing a separate filter in your Logstash pipeline.