PUT msqld-2015
{
"mappings": {
"log": {
"properties": {
"@timestamp": {
"type": "date",
"format": "dateOptionalTime"
},
"@version": {
"type": "string"
},
"host": {
"type": "string",
"index": "not_analyzed"
},
"ip": {
"type": "string",
"index": "not_analyzed"
},
"lock_time": {
"type": "double"
},
"message": {
"type": "string",
"index": "not_analyzed"
},
"query": {
"type": "string"
},
"query_time": {
"type": "double"
},
"rows_examined": {
"type": "double"
},
"rows_sent": {
"type": "double"
},
"type": {
"type": "string"
},
"user": {
"type": "string"
}
}
},
"dump": {
"properties": {
"@timestamp": {
"type": "date",
"format": "dateOptionalTime"
},
"@version": {
"type": "string"
},
"count": {
"type": "double"
},
"host": {
"type": "string",
"index": "not_analyzed"
},
"ip": {
"type": "string",
"index": "not_analyzed"
},
"lock": {
"type": "double"
},
"message": {
"type": "string",
"index": "not_analyzed"
},
"query": {
"type": "string"
},
"rows": {
"type": "double"
},
"time": {
"type": "double"
},
"type": {
"type": "string"
},
"user": {
"type": "string"
}
}
}
}
}