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

log4stash v3.0.0 doesn't work with ElasticSearch 6.x #78

Open
midczak opened this issue Mar 10, 2021 · 1 comment
Open

log4stash v3.0.0 doesn't work with ElasticSearch 6.x #78

midczak opened this issue Mar 10, 2021 · 1 comment

Comments

@midczak
Copy link

midczak commented Mar 10, 2021

I faced issue logging to ElasticSearch in version 6.x after upgrade log4stash to v3.0.0
In the latest version requests that are send to Elastic doesn't contain field "_type" in body. it's not mandatory for Elastic version 7.x but without it requests fails for 6.x and lower.

Are there any plans for backward compatibility with older Elastic versions? Or maybe is there some way to make log4stash 3.0 working with older ES?

@eran-gil
Copy link
Collaborator

eran-gil commented Mar 12, 2021

Hey, if you just add the "IndexType" parameter in the configuration it will work for you.
Before v3.0.0 the type had a default value, now you have to specify it in order for it to be sent.
FYI, since v3.0.0 every version is tested for usage with ElasticSearch v5.x, 6.X and 7.X.

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

No branches or pull requests

2 participants