Discuss about Elasticsearch output #40831
Replies: 6 comments
-
Pinging Elastic Exporter contributors: @JaredTan95, @carsonip, @lahsivjar |
Beta Was this translation helpful? Give feedback.
-
Hi @smalenfant , thanks for the question. May I ask where did you obtain this JSON?
I suspect that there is no "duplication". ES 8.16+ and es exporter otel mode works together using passthrough field type to make it easier for users to query. Only 1 copy of the field is stored, but it "appears" to be both under attributes prefix and at root level. In Kibana dev tools, if you try
You'll be able to see what's actually sent to Elasticsearch. |
Beta Was this translation helpful? Give feedback.
-
Thanks, that passthrough explains a lot. I wasn't aware of this. I had a few other questions. Is there a way to get debug output of documents sent to Elastic?
I also added
And:
I'm not sure how that fits in for the timestamp either. |
Beta Was this translation helpful? Give feedback.
-
For debug output, please refer to telemetry settings: https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/exporter/elasticsearchexporter#telemetry-settings
They will not be merged unless data points have the same dimensions, i.e. all resource attributes, scope attributes, data point attributes, timestamp, etc. The data points will also need to be in the same request sent to elasticsearch exporter. |
Beta Was this translation helpful? Give feedback.
-
@carsonip Sorry, I didn't answer the question where I got that JSON. It's the document output in Elasticsearch. |
Beta Was this translation helpful? Give feedback.
-
Ok, so I was able to merge all my documents together using those processors :
I also believe that It wrote the following into Elastic which is exactly what I needed:
Now I need to rename some fields. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
This would be my first question, data duplication in the Elastic output.
Here's my output configuration:
metric pipeline:
In the elastic output, all attributes and metrics are duplicated. Who's duplicating all this?
Beta Was this translation helpful? Give feedback.
All reactions