Hello,
I'm using Kibana 4 with ElasticSearch 2.3.5 to store and search logs. I have a "Message" field which is analyzed and a "Message.raw" field which is not analyzed, this is configured in the mapping template.
From the Settings tab in Kibana I can see the Message.raw field is exist.
But when I search for "Message.raw" field I can't get any result.
My template mapping looks like
{
"template": "aa*",
"settings": {
"index": {
"index": {
"translog": {
"sync_interval": "30s",
"durability": "async"
},
"requests": {
"cache": {
"enable": "true"
}
}
},
"refresh_interval": "30s"
}
},
"mappings": {
"usage": {
"_source": {
"enabled": false
},
"_all": {
"enabled": false
},
"properties": {
"Type": {
"index": "not_analyzed",
"type": "string",
"doc_values": true
},
"Message": {
"norms": {
"enabled": false
},
"index": "analyzed",
"type": "string",
"fields": {
"raw": {
"ignore_above": 1024,
"index": "not_analyzed",
"type": "string"
}
}
},
"Zone": {
"index": "not_analyzed",
"type": "string",
"doc_values": true
},
"Hostname": {
"index": "not_analyzed",
"type": "string",
"doc_values": true
},
"Levelname": {
"index": "not_analyzed",
"type": "string",
"doc_values": true
},
"Process": {
"index": "not_analyzed",
"type": "string",
"doc_values": true
},
"Time": {
"index": "not_analyzed",
"type": "string",
"doc_values": true
},
"Logger": {
"index": "not_analyzed",
"type": "string",
"doc_values": true
},
"Timestamp": {
"format": "strict_date_optional_time||epoch_millis",
"type": "date",
"doc_values": true
},
"Lineno": {
"index": "not_analyzed",
"type": "string",
"doc_values": true
},
"Name": {
"index": "not_analyzed",
"type": "string",
"doc_values": true
}
}
}
},
"aliases": {}
}
Do you know what I'm doing wrong here and how can I fix this?
Thanks.