Hi,
I'm trying to generate ecs template with custom settings. For that, I used this repo GitHub - elastic/ecs: Elastic Common Schema.
Command used :
python scripts/generator.py --template-settings template.json --ref v1.7.0 --out ./test
Setting template used :
{
"index_patterns": ["fluentd_openshift-sbx-*"],
"order": 1,
"settings": {
"index": {
"lifecycle": {
"name": "openshift",
"rollover_alias": "fluentd_openshift-sbx"
},
"number_of_shards": "1",
"number_of_replicas": "1",
"mapping": {
"total_fields": {
"limit": 1000
}
}
}
}
}
Problem is that this template generated cannot be sent to elasticsearch :
{
"error" : {
"root_cause" : [
{
"type" : "x_content_parse_exception",
"reason" : "[1:58] [index_template] unknown field [mappings]"
}
],
"type" : "x_content_parse_exception",
"reason" : "[1:58] [index_template] unknown field [mappings]"
},
"status" : 400
}
Why I can't push this generated template ? Did I missed something ?
Best regards,
Thomas