-
Notifications
You must be signed in to change notification settings - Fork 133
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
fluent-bit fails to forward logs when using AWS Opensearch 2.3 #507
Comments
I think you just need |
Opensearch team got back to me and confirmed the above is correct:
I don't think this is how When we talk about removing the type name for opensearch, IIRC, its a key that the |
This one can be resolved by following this one (OpenSearch 2.0 and above ) Need to add |
i have set but have new errors
|
Adding To answer my question,
Custom config (Removed
@Matrix-Zhang your issue seems specific to your cluster and custom parsing setup. |
Describe the question/issue
I have been using AWS-Firelens + AWS-fluent-bit to forward logs from ECS to opensearch.
After upgrading AWS Opensearch from 1.3 to 2.3, firelens log forwarder fails with below error:
{"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}
Configuration
Based on example from amazon-ecs-firelens-examples and AWS Copilot
we have been using below config for firelens which was working before:
Custom config:
Fluent Bit Log Output
Fluent Bit Version Info
2.29.0
Cluster Details
Service is running on AWS ECS Fargate.
AWS Firelens is used for routing logs to AWS Opensearch.
Application Details
Simple Java web service app that prints logs to console, producing about 200 logs per minute.
Steps to reproduce issue
Try out aws-ecs-firelens-opensearch example with 2.3 opensearch domain.
Related Issues
opensearch-project/OpenSearch#5516
The text was updated successfully, but these errors were encountered: