You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Linux e3f4b5161783 6.5.11-linuxkit #1 SMP PREEMPT Wed Dec 6 17:08:31 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux
Problem Description
This problem only arises with index templates where index.mode: time_series, and a dynamic template has more than one path_match. Time series is only enabled for Metrics types. The same issue doesn't happen for logs data streams.
The same problem doesn't happen if instead of TSDB I only use "_source": { "mode": "synthetic" }.
This problem prevents me from adding ecs@mappings as a component template to all index templates.
{
"error": {
"root_cause": [
{
"type": "mapper_parsing_exception",
"reason": "no type specified for property [text]"
}
],
"type": "mapper_parsing_exception",
"reason": "no type specified for property [text]"
},
"status": 400
}
even if the type is specified correctly
The same problem doesn't happen if I only have one path_match like the following
{
"error": {
"root_cause": [
{
"type": "mapper_parsing_exception",
"reason": "no type specified for property [text]",
"stack_trace": """org.elasticsearch.index.mapper.MapperParsingException: no type specified for property [text]
at [email protected]/org.elasticsearch.index.mapper.TypeParsers.parseMultiField(TypeParsers.java:158)
at [email protected]/org.elasticsearch.index.mapper.FieldMapper$Builder.parse(FieldMapper.java:1303)
at [email protected]/org.elasticsearch.index.mapper.FieldMapper$TypeParser.parse(FieldMapper.java:1465)
at [email protected]/org.elasticsearch.index.mapper.FieldMapper$TypeParser.parse(FieldMapper.java:1422)
at [email protected]/org.elasticsearch.datastreams.DataStreamIndexSettingsProvider.findRoutingPaths(DataStreamIndexSettingsProvider.java:185)
at [email protected]/org.elasticsearch.datastreams.DataStreamIndexSettingsProvider.getAdditionalIndexSettings(DataStreamIndexSettingsProvider.java:118)
at [email protected]/org.elasticsearch.cluster.metadata.MetadataIndexTemplateService.validateIndexTemplateV2(MetadataIndexTemplateService.java:691)
at [email protected]/org.elasticsearch.cluster.metadata.MetadataIndexTemplateService.addIndexTemplateV2(MetadataIndexTemplateService.java:625)
at [email protected]/org.elasticsearch.cluster.metadata.MetadataIndexTemplateService.addIndexTemplateV2(MetadataIndexTemplateService.java:562)
at [email protected]/org.elasticsearch.cluster.metadata.MetadataIndexTemplateService$5.execute(MetadataIndexTemplateService.java:507)
at [email protected]/org.elasticsearch.cluster.metadata.MetadataIndexTemplateService$1.executeTask(MetadataIndexTemplateService.java:142)
at [email protected]/org.elasticsearch.cluster.metadata.MetadataIndexTemplateService$1.executeTask(MetadataIndexTemplateService.java:139)
at [email protected]/org.elasticsearch.cluster.SimpleBatchedExecutor.execute(SimpleBatchedExecutor.java:70)
at [email protected]/org.elasticsearch.cluster.service.MasterService.innerExecuteTasks(MasterService.java:1039)
at [email protected]/org.elasticsearch.cluster.service.MasterService.executeTasks(MasterService.java:1004)
at [email protected]/org.elasticsearch.cluster.service.MasterService.executeAndPublishBatch(MasterService.java:232)
at [email protected]/org.elasticsearch.cluster.service.MasterService$BatchingTaskQueue$Processor.lambda$run$2(MasterService.java:1626)
at [email protected]/org.elasticsearch.action.ActionListener.run(ActionListener.java:368)
at [email protected]/org.elasticsearch.cluster.service.MasterService$BatchingTaskQueue$Processor.run(MasterService.java:1623)
at [email protected]/org.elasticsearch.cluster.service.MasterService$5.lambda$doRun$0(MasterService.java:1237)
at [email protected]/org.elasticsearch.action.ActionListener.run(ActionListener.java:368)
at [email protected]/org.elasticsearch.cluster.service.MasterService$5.doRun(MasterService.java:1216)
at [email protected]/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:983)
at [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.base/java.lang.Thread.run(Thread.java:1583)
"""
}
],
"type": "mapper_parsing_exception",
"reason": "no type specified for property [text]",
"stack_trace": """org.elasticsearch.index.mapper.MapperParsingException: no type specified for property [text]
at [email protected]/org.elasticsearch.index.mapper.TypeParsers.parseMultiField(TypeParsers.java:158)
at [email protected]/org.elasticsearch.index.mapper.FieldMapper$Builder.parse(FieldMapper.java:1303)
at [email protected]/org.elasticsearch.index.mapper.FieldMapper$TypeParser.parse(FieldMapper.java:1465)
at [email protected]/org.elasticsearch.index.mapper.FieldMapper$TypeParser.parse(FieldMapper.java:1422)
at [email protected]/org.elasticsearch.datastreams.DataStreamIndexSettingsProvider.findRoutingPaths(DataStreamIndexSettingsProvider.java:185)
at [email protected]/org.elasticsearch.datastreams.DataStreamIndexSettingsProvider.getAdditionalIndexSettings(DataStreamIndexSettingsProvider.java:118)
at [email protected]/org.elasticsearch.cluster.metadata.MetadataIndexTemplateService.validateIndexTemplateV2(MetadataIndexTemplateService.java:691)
at [email protected]/org.elasticsearch.cluster.metadata.MetadataIndexTemplateService.addIndexTemplateV2(MetadataIndexTemplateService.java:625)
at [email protected]/org.elasticsearch.cluster.metadata.MetadataIndexTemplateService.addIndexTemplateV2(MetadataIndexTemplateService.java:562)
at [email protected]/org.elasticsearch.cluster.metadata.MetadataIndexTemplateService$5.execute(MetadataIndexTemplateService.java:507)
at [email protected]/org.elasticsearch.cluster.metadata.MetadataIndexTemplateService$1.executeTask(MetadataIndexTemplateService.java:142)
at [email protected]/org.elasticsearch.cluster.metadata.MetadataIndexTemplateService$1.executeTask(MetadataIndexTemplateService.java:139)
at [email protected]/org.elasticsearch.cluster.SimpleBatchedExecutor.execute(SimpleBatchedExecutor.java:70)
at [email protected]/org.elasticsearch.cluster.service.MasterService.innerExecuteTasks(MasterService.java:1039)
at [email protected]/org.elasticsearch.cluster.service.MasterService.executeTasks(MasterService.java:1004)
at [email protected]/org.elasticsearch.cluster.service.MasterService.executeAndPublishBatch(MasterService.java:232)
at [email protected]/org.elasticsearch.cluster.service.MasterService$BatchingTaskQueue$Processor.lambda$run$2(MasterService.java:1626)
at [email protected]/org.elasticsearch.action.ActionListener.run(ActionListener.java:368)
at [email protected]/org.elasticsearch.cluster.service.MasterService$BatchingTaskQueue$Processor.run(MasterService.java:1623)
at [email protected]/org.elasticsearch.cluster.service.MasterService$5.lambda$doRun$0(MasterService.java:1237)
at [email protected]/org.elasticsearch.action.ActionListener.run(ActionListener.java:368)
at [email protected]/org.elasticsearch.cluster.service.MasterService$5.doRun(MasterService.java:1216)
at [email protected]/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:983)
at [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.base/java.lang.Thread.run(Thread.java:1583)
"""
},
"status": 400
}
Logs (if relevant)
The text was updated successfully, but these errors were encountered:
Elasticsearch Version
8.11.3
Installed Plugins
No response
Java Version
bundled
OS Version
Linux e3f4b5161783 6.5.11-linuxkit #1 SMP PREEMPT Wed Dec 6 17:08:31 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux
Problem Description
This problem only arises with index templates where
index.mode: time_series
, and a dynamic template has more than one path_match. Time series is only enabled for Metrics types. The same issue doesn't happen for logs data streams.The same problem doesn't happen if instead of TSDB I only use
"_source": { "mode": "synthetic" }
.This problem prevents me from adding
ecs@mappings
as a component template to all index templates.More info about what I am trying to achieve at elastic/kibana#174905
The same problem described in this issue appears when testing with the latest ES snapshot 8.13.0-yfnfxbo3-SNAPSHOT
Steps to Reproduce
Try to create a sample index template with this command from the dev console.
You will get this error
even if the type is specified correctly
The same problem doesn't happen if I only have one path_match like the following
the stack trace for this error is
Logs (if relevant)
The text was updated successfully, but these errors were encountered: