Jaeger V2 and Elasticsearch mapping data problem #8184
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
|
Hi @jackchuong! I'm Dosu and I’m helping the jaeger team. The issue you're experiencing is a race condition between Jaeger's index template creation and Elasticsearch's auto-index creation. When spans arrive before templates are fully applied, Elasticsearch creates indices with its default dynamic mappings (fields as To fix this:
For a more robust setup, consider using ILM (Index Lifecycle Management) with the jaeger_storage:
backends:
primary_store:
elasticsearch:
use_aliases: true
use_ilm: true
create_mappings: false # Must be false when ILM is enabledBefore starting Jaeger with ILM:
The es-rollover init action explicitly creates templates before indices, eliminating the race condition. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.

Great progress! Your manual template setup is the right approach given the issues with Jaeger's automatic template creation.
Important for your ILM setup to work: Make sure your Jaeger configuration includes these settings:
Without
use_aliases: true, Jaeger will continue writing to date-based indices directly (likejaeger-primary-jaeger-span-2026-03-19) instead of your write aliases (jaeger-primary-jaeger-span-write). This would bypass your ILM rollover configuration.Also note from the ILM configuration discu…