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

[BUG] not reporting when failed index #525

Closed
RodrigoDornelles opened this issue Apr 12, 2024 · 5 comments
Closed

[BUG] not reporting when failed index #525

RodrigoDornelles opened this issue Apr 12, 2024 · 5 comments
Labels
bug Something isn't working question Further information is requested

Comments

@RodrigoDornelles
Copy link

What is the bug?

How can one reproduce the bug?

There is no error log when there is a wrong configuration, such as failed SSL, wrong DNS, permission error...

What is the expected behavior?

correct config logs

2024-04-08T14:00:03Z D! [outputs.opensearch] indexName- github_push-audit-2024_04_08
2024-04-08T14:00:03Z D! [outputs.opensearch] Indexed to OpenSearch with status- [201] Result- created DocumentID- c61b1e60c648cc1fc86222e059d36d89c3eee5db49d4d36b16a96d0fbbcc22b9 
2024-04-08T14:00:03Z D! [outputs.opensearch] Successfully indexed [1] documents
2024-04-08T14:00:03Z D! [outputs.opensearch] Wrote batch of 346 metrics in 73.075738ms
2024-04-08T14:00:03Z D! [outputs.opensearch] Buffer fullness: 0 / 10000 metrics

wrong config logs

2024-04-08T14:00:03Z D! [outputs.opensearch] indexName- github_push-audit-2024_04_08
2024-04-08T14:00:03Z D! [outputs.opensearch] Successfully indexed [1] documents
2024-04-08T14:00:03Z D! [outputs.opensearch] Wrote batch of 346 metrics in 73.075738ms
2024-04-08T14:00:03Z D! [outputs.opensearch] Buffer fullness: 0 / 10000 metrics
  • Note that there is no failure signal such as an error message.
  • is also missing by this metric:
    2024-04-08T14:00:03Z D! [outputs.opensearch] Indexed to OpenSearch with status- [201] Result- created DocumentID- c61b1e60c648cc1fc86222e059d36d89c3eee5db49d4d36b16a96d0fbbcc22b9

expected with wrong config logs

2024-04-08T14:00:03Z D! [outputs.opensearch] indexName- github_push-audit-2024_04_08
2024-04-08T14:00:03Z D! [outputs.opensearch] some error message about failed
2024-04-08T14:00:03Z D! [outputs.opensearch] Failed trying indexing [1] documents

What is your host/environment?

Linux 5.15, Docker 26.0, Telegraf 1.30.1

Do you have any additional context?

issue related influxdata/telegraf#15119 influxdata/telegraf#14334

@RodrigoDornelles RodrigoDornelles added bug Something isn't working untriaged labels Apr 12, 2024
@Jakob3xD
Copy link
Collaborator

@RodrigoDornelles can you please give us more information and some clear instructions on how to reproduce this. Especially for ppl. who don't use telegraf.
Moreover the http bulk response would be interesting.

As a note to us: telegraf uses v2 of opensearch-go

@Jakob3xD Jakob3xD added question Further information is requested and removed untriaged labels Apr 15, 2024
@RodrigoDornelles
Copy link
Author

As you can see in issue influxdata/telegraf#15119, using any configuration with valid syntax, but incorrect parameters such as password or host will reproduce the error.

who said there was a possibility that the problem could be in this plugin was @powersj with his comment influxdata/telegraf#15119 (comment)

@dblock
Copy link
Member

dblock commented Apr 15, 2024

So this problem only happens with telegraf? If so sounds like an issue with that agent rather than a problem with the library itself. Any objections we close this here @RodrigoDornelles, or do you have reasons to believe the client is the issue?

@RodrigoDornelles
Copy link
Author

I haven't tested it elsewhere, well if there is a feature that reports errors in the plugin, the error is certainly not here.

@dblock dblock closed this as completed Apr 15, 2024
@dblock
Copy link
Member

dblock commented Apr 15, 2024

Looks like this was root caused in influxdata/telegraf#15119 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants