-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Document already exist (http 409) cases document improvements. #16117
Comments
There is another potential cause for these 409 conflicts. When integrations write to a TSDS enabled index, the document id is defined as "a hash of the document’s dimensions and @timestamp". The document's dimensions are defined in the integration, and when events are sent at a frequency > 1 per millisecond, and the dimensions are insufficient to disambiguate those events, a version conflict will arise. |
Had created a doc for fingerpint case but not sure if we have a recommended resolution for TSDS case: https://github.com/mashhurs/logstash/blob/docs-409-issue/docs/static/troubleshoot/ts-elasticsearch.asciidoc |
Mostly, we get document level http-409 with following cases: 1. Customers are manually setting document They need to ensure 2. [elastic-agent -> LS] Logstash is experiencing backpressure When {ls} faces backpressure, it cannot acknowledge the events back to elastic-agent and as a result agent timeouts, resends the events.
3. [elastic-agent -> LS] Time series data stream (TSDS) based integration
With this symptom, I haven't seen the
4. Can be ignored
|
Tell us about the issue
Description:
There are various situation where ES may reject the event with document already exist. Purpose of this issue to collect such cases and add a short documentation (under the whichever suitable place, in troubleshooting or support doc or
es-output
) as we are getting same question over and over.Possibly two cases I can think of now:
_id
. For example,tenable_sc
integration may havelogs-tenable_sc.vulnerability-{version}
&logs-tenable_sc.plugin-{version}
ingest pipelines which have fingerprint sets the_id
:Example log when Logstash receives a rejected event:
Logstash is having a backpressure where it cannot acknowledge the events to agent, as a result agent timeouts and resends the event. In a reality events might be indexed already in the ES. Quick resolution would be extending agent timeout but may depend on the situation.
etc.
URL:
Example: https://www.elastic.co/guide/en/logstash/current/introduction.html
Anything else?
The text was updated successfully, but these errors were encountered: