-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[BUG] 400 Bad Request: {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Action/metadata line [1] contains an unknown parameter [_type]" #3484
Comments
Same here. |
Thanks @HugoKuo and @Wadlazky for sharing this issue. Looks like the Filebeat uses docType in bulk request metadata. As types are removed from OpenSearch 2.0, the request fails during Bulk request parsing, which is expected. I suggest upgrading to latest OpenSearch clients for compatibility as legacy (ES) clients are not supported with OpenSearch 2.0+ |
@dreamer-89 is right. The error is tripped from the BulkRequestParser. The new errorOnType parameter was added to help alleviate these bwc errors but since we're relying on upstream Beats here it looks like this wasn't caught before release. The default for Before releasing this as a 2.0.1 patch we need to check that this is the only incompatibility and there aren't more lingering that haven't yet been reported. |
same issue I belive with pubsubbeats: 2022-06-16T13:27:43.690Z ERROR elasticsearch/client.go:344 Failed to perform any bulk index operations: 400 Bad Request: {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Action/metadata line [1] contains an unknown parameter [_type]"}],"type":"illegal_argument_exception","reason":"Action/metadata line [1] contains an unknown parameter [_type]"},"status":400} |
pubsubbeats now works with 2.0.1 if you set |
Thank you @msillence for the confirmating that fix is working. @Wadlazky @HugoKuo : Can you please try OpenSearch |
A brief note on the fix deployed. |
Thanks all for taking care of it. |
confirmed it's working with 2.0.1 now. |
Working for me too in 2.0.1 with compatibility.override_main_response_version set to true. Does not work without this. Please update documentation: https://opensearch.org/docs/latest/clients/agents-and-ingestion-tools/index/ |
Thanks @nanolonny for pointing this and apologies for delay on documentation part. Certainly updated doc will save a lot of time and effort. There is some discussion happened on PR Pinging @alicejw-aws @hdhalter for visibility. |
Documentation issue tracking this: opensearch-project/documentation-website#741 |
I tried compatibility.override_main_response_version: true in opensearch.yml and it works. |
I was facing the same issue Just added Suppress_Type_Name On in the fluent-bit.conf to make the connection with open-serach. |
|
@ayodeji-awe yes... filebeat 7.12.1
reference : https://docs.aws.amazon.com/opensearch-service/latest/developerguide/rename.html |
The filebeat shows this error after upgrading the OpenSearch to 2.0.0
2022-05-31T23:38:55.864Z ERROR [elasticsearch] elasticsearch/client.go:224 failed to perform any bulk index operations: 400 Bad Request: {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Action/metadata line [1] contains an unknown parameter [_type]"}],"type":"illegal_argument_exception","reason":"Action/metadata line [1] contains an unknown parameter [_type]"},"status":400}
To Reproduce
Upgrade the OpenSearch from 1.3 to 2.0
Are these related?
#2979 (comment)
#3131
The text was updated successfully, but these errors were encountered: