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

Beats can't to write to older versions of ES than 6.2 due to _doc #10012

Closed
henrikno opened this issue Jan 11, 2019 · 2 comments
Closed

Beats can't to write to older versions of ES than 6.2 due to _doc #10012

henrikno opened this issue Jan 11, 2019 · 2 comments
Labels

Comments

@henrikno
Copy link
Contributor

I tried to point filebeat master at a 5.6.14 ES cluster and it fails with:

{"type":"invalid_type_name_exception","reason":"Document mapping type name can't start with '_', f ound: [_doc]"}

It will be the same for ES <6.2 since support for _doc was added to 6.2: elastic/elasticsearch#27816

According to the PR switching to _doc it should only do so for ES 7.0 #9056
But it looks like it's hard coded:


Shouldn't this use eventType?
if client.GetVersion().Major < 7 {
client.eventType = defaultEventTypeES6
} else {
client.eventType = defaultEventType
}

@ruflin ruflin added the libbeat label Jan 11, 2019
@urso
Copy link

urso commented Feb 26, 2019

This should work now with recent master.

@ph
Copy link
Contributor

ph commented Dec 20, 2019

This should be fixed in latest releases.

@ph ph closed this as completed Dec 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants