Newb needs help with date formatting

For reasons I cannot understand, I cannot seem to get my date formatting working. Here is the code:
[EDITED]:

PUT /pinggoogle
{
 "mappings" : {
  "logs" : {
   "properties" : {
     "pingdate": {
       "type":"date",
       "format":"yyyy/MM/dd HH:mm:ss"
     }
   }
  }
 }
}
put pinggoogle/logs/1
{
  "pingdate": "2017/07/07 09:05:42"
}

My last command reads the document I am trying to ingest and seems to parse it correctly, but when I look at the index in Kibana, it looks like it brings it in as an unknown type.

What is kk? It's not a format we support according to format | Elasticsearch Guide [8.11] | Elastic

if I read the documentation correctly it is the hour in 24 hour time. http://www.joda.org/joda-time/apidocs/org/joda/time/format/DateTimeFormat.html

... but I get the same error if I change the kk to hh...

OK, I edited my code to isolate the problem and changed the kk to hh. My date is still showing up as an unknown type...

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.