I am getting this error in fluentd pods , i have a efk setup in eks cluster , can someone help me with this please - error_class=Fluent::Plugin::ElasticsearchErrorHandler::ElasticsearchError error="400 - Rejected by Elasticsearch" location=nil tag="ku

error_class=Fluent::Plugin::ElasticsearchErrorHandler::ElasticsearchError error="400 - Rejected by Elasticsearch" location=nil tag="kubernetes.var.log.containers.fluentd

Welcome to our community! :smiley:

Please read Dec 10th, 2022: [EN] Asking top notch technical questions to get you help quicker! and update your topic with more information.

The error message you provided indicates that there is an issue with the Elasticsearch integration in your Fluentd configuration. The error "400 - Rejected by Elasticsearch" suggests that Elasticsearch is rejecting the data sent by Fluentd.

Here are a few steps you can take to troubleshoot and resolve this issue:

Check Elasticsearch connectivity: Ensure that Fluentd can successfully connect to your Elasticsearch cluster. Verify the Elasticsearch host, port, and any authentication credentials if required.

Verify Elasticsearch version compatibility: Confirm that your Fluentd version is compatible with the version of Elasticsearch you are using. There might be compatibility issues if the versions do not align.

Review Elasticsearch cluster settings: Check if your Elasticsearch cluster has any restrictions or limitations that could cause the rejection of data from Fluentd. For example, there could be index-level or cluster-level settings that are preventing the data from being indexed.

Review Fluentd configuration: Double-check your Fluentd configuration file (fluent.conf) to ensure it is correctly set up for sending data to Elasticsearch. Verify that the index name, mapping, and other settings are accurate.

Check for Elasticsearch error logs: Inspect the Elasticsearch logs to gather more information about the rejection. Look for any specific error messages or warnings that could indicate the cause of the problem.

Test with a simple Fluentd configuration: Temporarily simplify your Fluentd configuration to isolate the issue. Start with a minimal configuration that only sends basic log data to Elasticsearch and see if the error still occurs. If it works, gradually add back the additional configurations to identify the specific component causing the problem.

Monitor network connectivity: Ensure that there are no network issues between Fluentd and Elasticsearch, such as firewalls or network restrictions that could be blocking the communication.

If none of these steps resolve the issue, it might be helpful to seek support from the Fluentd community, the Elasticsearch community, or the specific vendor or maintainer of your EFK (Elasticsearch, Fluentd, Kibana) stack. They can provide more targeted guidance based on your specific setup and configuration.

Remember to include relevant details, such as your Fluentd configuration, Elasticsearch version, and any error logs, when seeking assistance. This will help the support team or community members better understand the problem and provide appropriate solutions.

I hope these suggestions help you troubleshoot and resolve the issue with your Fluentd and Elasticsearch integration.

Regards,
Rachel Gomez

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.