elasticsearch,mapping,kibana,Date,Datetime,elasticsearch,Mapping,Kibana" /> elasticsearch,mapping,kibana,Date,Datetime,elasticsearch,Mapping,Kibana" />

Date ElasticSearch日期/时间映射

Date ElasticSearch日期/时间映射,date,datetime,elasticsearch,mapping,kibana,Date,Datetime,elasticsearch,Mapping,Kibana,这是我的输入数据: "INC_Cancelled_Date_Time": "2017-05-19 07:26:34" 这是我的映射: "INC_Cancelled_Date_Time":{ "type":"date", "format":"yyyy-MM-dd HH:mm:ss" } 这是我的错误: { "error" : { "root_cause" : [ { "type" : "mapper_parsing_exce

这是我的输入数据:

"INC_Cancelled_Date_Time": "2017-05-19 07:26:34"
这是我的映射:

"INC_Cancelled_Date_Time":{
      "type":"date",
      "format":"yyyy-MM-dd HH:mm:ss"
   }
这是我的错误:

{
  "error" : {
    "root_cause" : [
      {
        "type" : "mapper_parsing_exception",
        "reason" : "failed to parse [INC_Cancelled_Date_Time]"
      }
    ],
    "type" : "mapper_parsing_exception",
    "reason" : "failed to parse [INC_Cancelled_Date_Time]",
    "caused_by" : {
      "type" : "illegal_argument_exception",
      "reason" : "Invalid format: \"19-05-2017 07:26:34\" is malformed at \"17 07:26:34\""
    }
  },
  "status" : 400
}

我已将格式更改为dd-MM-yyy-HH:MM:ss,但没有得到任何信息。到处闲逛。有人知道如何解决这个问题吗?

嘿,你能确认一下你使用的弹性堆叠的版本吗?是的。使用网站5.4.0的最新下载,似乎您实际上插入了2017年5月19日,而不是2017年5月19日