Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example of additional_codecs setting #130

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jaalcorn
Copy link

Add an example using the additional_codecs setting to clarify what the document is stating about using two codecs and reinforce the codec setting's tie back to the Content-Type setting

Thanks for contributing to Logstash! If you haven't already signed our CLA, here's a handy link: https://www.elastic.co/contributor-agreement/

Add an example using the additional_codecs setting to clarify what the document is stating about using two codecs and reinforce the codec setting's tie to the Content-Type setting
Copy link
Contributor

@andsel andsel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @jaalcorn thank's for contributing.
I think the es_bulk codec is quite particular, may be worth to see the configuration with a main codec and another more specific, so let understand that the additional_codec are used when no content-type codec is matched, for example:

http {
  codec => json
  additional_codecs => {"application/text", "plain"}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants