Skip to content

How to Create Indexed Attributes with opentelemetry-spring-boot-starter Exporting to ELK #12072

Answered by SylvainJuge
ghost asked this question in Q&A
Discussion options

You must be logged in to vote

So if I understand this correctly you are exporting to apm-server via the OTLP protocol, not using the otel collector Elasticsearch exporter with the ECS mapping, so what I wrote previously about APM server mapping should apply here.

The labels should be indexed as keywords, can you check the index template in Kibana by going in Stack Management > Index Management > Index Templates tab, then open the traces-apm managed template.

Then on the right panel, on the 4th and last tab named Preview you should see the JSON of the index template, it should contain this for labels.* and similar for numerical_labels.*:

{
  "labels": {
    "path_match": "labels.*",
    "match_mapping_type": "string",
…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@SylvainJuge
Comment options

Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants