Hey folks,
I have a problem: I create a dynamic for some tracking data (JSON) index like this:
PUT test
{
"settings": {
"index.mapping.ignore_malformed":true
},
"mappings": {
"supersonic": {
"dynamic": "true",
"dynamic_templates": [
{
"dates": {
"match": ".*Date.*|.*date.*|.*timestamp.*|.*Timestamp.*",
"match_pattern": "regex",
"mapping": {
"type": "date"
}
}
}
]
}
}
}
}
As soon as the first message hits the index, it is created like this:
{
"test": {
"aliases": {},
"mappings": {
"supersonic": {
"dynamic": "true",
"dynamic_templates": [
{
"dates": {
"mapping": {
"type": "date"
},
"match": ".*Date.*|.*date.*|.*timestamp.*|.*Timestamp.*",
"match_pattern": "regex"
}
}
],
"properties": {
"battle_id": {
"type": "string"
},
"current_hp": {
"type": "double"
},
"date": {
"type": "date",
"format": "strict_date_optional_time||epoch_millis"
},
"entity_elements": {
"type": "string"
},
"entity_type": {
"type": "double"
},
"eventId": {
"type": "double"
},
"gameId": {
"type": "double"
},
"instanceId": {
"type": "double"
},
"ipLong": {
"type": "double"
},
"ipLongForwarded": {
"type": "double"
},
"ipLongPeer": {
"type": "double"
},
"networkId": {
"type": "double"
},
"platform_id": {
"type": "double"
},
"playerId": {
"type": "string"
},
"pos_x": {
"type": "double"
},
"pos_y": {
"type": "double"
},
"room_x": {
"type": "double"
},
"room_y": {
"type": "double"
},
"stage_id": {
"type": "double"
},
"timestamp": {
"type": "date",
"format": "strict_date_optional_time||epoch_millis"
},
"trevor_date": {
"type": "date",
"format": "strict_date_optional_time||epoch_millis"
},
"tsEventAccepted": {
"type": "double"
},
"version": {
"type": "string"
}
}
}
},
"settings": {
"index": {
"creation_date": "1457095891176",
"mapping": {
"ignore_malformed": "true"
},
"uuid": "6qz6SDXIQQuof9XB6OaBQw",
"number_of_replicas": "1",
"number_of_shards": "5",
"version": {
"created": "2020099"
}
}
},
"warmers": {}
}
}
The data arrives, is indexed, and everything looks fine in Kibana. But when I try to filter by a date (when I pick it from the right side, so it HAS to be there, or do a date histogram for example, it shows "No results found"
Nothing suspicious in the logs, I don't know how to investigate further :-/
I am using ES 2.2.0 and Kibana 4.4.1 and I am really grateful about any help, I already spent a lot of time on this and can't see why it won't work, since it's very very basic stuff.