Reputation: 3060
Created an index student and loaded json data. sample json data :
{
"name": "Daniel",
"joiningdate": "06-28-2018",
"street": "mark street",
"city":"sj"
}
_mapping
{
.....
"properties":{ "joiningdate":{"type":"date","format":"mm-dd-yyyy"}}..
}
while ploting timelion graph with count, it is showing empty record. any idea
Upvotes: 0
Views: 131
Reputation: 217314
Your date format should be MM-dd-yyyy
as mm
stands for minutes, not months. You also need to make sure to create an index pattern for your index.
"properties":{ "joiningdate":{"type":"date","format":"MM-dd-yyyy"}}..
^
|
change this
Upvotes: 1