Dear All,
I'm trying to create a mapping template like below:
PUT _template/documentum
{
"index_patterns":"docu_*",
"version": 1,
"settings": {
"index.refresh_interval" : "5s"
},
"mapping": {
"doc": {
"properties": {
"@timestamp": {
"type": "date"
},
"@version": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"docu": {
"properties": {
"session": {
"properties": {
"client_host": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"client_lib_ver": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"db_session_id": {
"type": "text"
},
"dormancy_status": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"last_used": {
"type": "date",
"format": "dd/MM/YYYY HH:mm:ss"
},
"pid": {
"type": "text"
},
"root_pid": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"root_start": {
"type": "date",
"format": "dd/MM/YYYY HH:mm:ss"
},
"session": {
"type": "long"
},
"session_status": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"shutdown_flag": {
"type": "text"
},
"start": {
"type": "date",
"format": "dd/MM/YYYY HH:mm:ss"
},
"transaction_status": {
"type": "text"
},
"user_authentication": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"user_name": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
}
}
}
}
},
"host": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"message": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"path": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"tags": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
}
}
}
}
}
The creating response is:
{
"acknowledged": true
}
But when i'm trying to verify this template, it's seems not to be created properly:
{
"documentum": {
"order": 0,
"version": 1,
"index_patterns": [
"docu_*"
],
"settings": {
"index": {
"refresh_interval": "5s"
}
},
"mappings": {},
"aliases": {}
}
}
do you know why.?
Many thanks for your feed back