-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Elasticsearch output should probably not use a type (flb_type) #1359
Comments
Since ES 7.* is available on AWS as well, one would expect more people running into this. Any news? |
I just ran into this issue:
Adding line
to Fluent Bit Elasticsearch output config walks around this problem. My Enviroment:
|
…h effectively are getting rid of _type, we should change the default type to be "_doc" As per the ElasticSearch forum discussion at: https://discuss.elastic.co/t/7-0-1-template-with-geo-point-geoip-processor-in-pipeline-bulk-crash/182039/3 this seems to be due to not specifying a _type when creating the mapping, at which point it defaults to "_doc". Later when performing a bulk operation (indexing) we specifying that _type is "flb_type" which then causes the error to be thrown about multiple types not being allowed: "Rejecting mapping update to [logs-2019.11.16] as the final mapping would have more than 1 type: [_doc, flb_type]" Another possible solution to this issue might be to use the "flb_type" when creating the index (and mappings) initially, however I'm not sure whether this type is being used for anything (we are not filtering or querying based on it). Issue(s): fluent#1359
In order to be compatible with the new versions of ElasticSearch which effectively are getting rid of _type, we should change the default type to be "_doc" As per the ElasticSearch forum discussion at: https://discuss.elastic.co/t/7-0-1-template-with-geo-point-geoip-processor-in-pipeline-bulk-crash/182039/3 this seems to be due to not specifying a _type when creating the mapping, at which point it defaults to "_doc". Later when performing a bulk operation (indexing) we specifying that _type is "flb_type" which then causes the error to be thrown about multiple types not being allowed: "Rejecting mapping update to [logs-2019.11.16] as the final mapping would have more than 1 type: [_doc, flb_type]" Another possible solution to this issue might be to use the "flb_type" when creating the index (and mappings) initially, however I'm not sure whether this type is being used for anything (we are not filtering or querying based on it). Issue(s): fluent#1359 Signed-off-by: Srdan Dukic <[email protected]>
It does not solve the problem. Fluent bit should stop sending _type to ES 7. The message on HTTP is clear: |
bump, running into this issue as well @edsiper |
We'd also like to see this to be implemented. |
I'm on 7.2.0 and fluent-bit 1.3.5 and still getting this error
|
we have the same issue |
In order to be compatible with the new versions of ElasticSearch which effectively are getting rid of _type, we should change the default type to be "_doc" As per the ElasticSearch forum discussion at: https://discuss.elastic.co/t/7-0-1-template-with-geo-point-geoip-processor-in-pipeline-bulk-crash/182039/3 this seems to be due to not specifying a _type when creating the mapping, at which point it defaults to "_doc". Later when performing a bulk operation (indexing) we specifying that _type is "flb_type" which then causes the error to be thrown about multiple types not being allowed: "Rejecting mapping update to [logs-2019.11.16] as the final mapping would have more than 1 type: [_doc, flb_type]" Another possible solution to this issue might be to use the "flb_type" when creating the index (and mappings) initially, however I'm not sure whether this type is being used for anything (we are not filtering or querying based on it). Issue(s): #1359 Signed-off-by: Srdan Dukic <[email protected]> Co-authored-by: Serge Dukic <[email protected]>
This can be closed? 04ed3d8 |
thanks, closing it. |
set
then delete existing indexes to avoid
|
I don't believe this issue is actually solve. Elastic 7.8 will reject the POST to _bulk if the _type is part of the parameter set. I have entered the supporting document in issue #2448 |
In Elasticsearch 7.0, document types are now deprecated.
However, fluent-bit ES output sets by default the document type to
flb_type
which can yield tricky issues when you're not an Elasticsearch expert.It would be wise to set the type do "_doc" by default or not use a type at all.
The text was updated successfully, but these errors were encountered: