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

Vector should state the IP/hostname of the host that it failed to connect to #21715

Open
tronboto opened this issue Nov 6, 2024 · 0 comments
Labels
sink: elasticsearch Anything `elasticsearch` sink related type: feature A value-adding code addition that introduce new functionality.

Comments

@tronboto
Copy link

tronboto commented Nov 6, 2024

A note for the community

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Use Cases

When using the elasticsearch sink, it is possible to specify multiple endpoints:

However, when the sink fails to connect to one of them, there is no indication as to which endpoint it is (json log message prettified for clarity):

{
  "timestamp": "2024-11-06T11:18:12.759382Z",
  "level": "WARN",
  "message": "HTTP error.",
  "error": "error trying to connect: tcp connect error: Connection refused (os error 111)",
  "error_type": "request_failed",
  "stage": "processing",
  "internal_log_rate_limit": true,
  "target": "vector::internal_events::http_client",
  "span": {
    "name": "http"
  },
  "spans": [
    {
      "component_id": "sink_elasticsearch",
      "component_kind": "sink",
      "component_type": "elasticsearch",
      "name": "sink"
    },
    {
      "request_id": 2,
      "name": "request"
    },
    {
      "name": "http"
    }
  ]
}

Attempted Solutions

No response

Proposal

The log message should state which host the connection error occurred for.

References

No response

Version

vector 0.41.1 (x86_64-unknown-linux-gnu 745babd 2024-09-11 14:55:36.802851761)

@tronboto tronboto added the type: feature A value-adding code addition that introduce new functionality. label Nov 6, 2024
@pront pront added the sink: elasticsearch Anything `elasticsearch` sink related label Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sink: elasticsearch Anything `elasticsearch` sink related type: feature A value-adding code addition that introduce new functionality.
Projects
None yet
Development

No branches or pull requests

2 participants