Trying to create custom template. Pulled the dynamic template created, made modifications and then used Kibana's dev tool to PUT
it into Elasticsearch. Tested the template and saw an error with my config. but now I can't PUT
my modified version up. I tried deleting anything with the same template name and when I do a GET _all, I don't see my template. Here's the error I get followed by the template I am trying to add.
{
"error": {
"root_cause": [
{
"type": "resource_already_exists_exception",
"reason": "index [{/J4PdWhXDQHaKh8eeWAzduQ] already exists",
"index_uuid": "J4PdWhXDQHaKh8eeWAzduQ",
"index": "{"
}
],
"type": "resource_already_exists_exception",
"reason": "index [{/J4PdWhXDQHaKh8eeWAzduQ] already exists",
"index_uuid": "J4PdWhXDQHaKh8eeWAzduQ",
"index": "{"
},
"status": 400
}
Template (Cut down on fields to fit inside the post character limit)
{
"template": "dmarcxml"
"index_patterns": "dmarcxml-*"
"settings": {
"index": {
"refresh_interval": "5s",
"number_of_shards": 1,
"number_of_replicas" : 0,
}
},
"mappings": {
"_default_": {
"properties": {
"@timestamp": {
"type": "date"
}
},
}