代码之家  ›  专栏  ›  技术社区  ›  Nusrath

日期格式在kibana的日期直方图中不起作用

  •  0
  • Nusrath  · 技术社区  · 7 年前

    我试图用日期字段填充面积图。 它在kibana不起作用,当我使用elasticsearch查询时,它在那里起作用。

    enter image description here

    它在ElasticSearch查询中工作。

    enter image description here

    我的地图如下:

    PUT test1
    {
    "settings": {
    "index.mapping.ignore_malformed": true
    },
    "mappings": {
    "each_file": {
    "properties": {
    "Size": {"type": "integer","ignore_malformed": false },
    "Path ID": {"type": "integer","ignore_malformed": false },
    "Family Item Number": {"type": "integer","ignore_malformed": false },
    "Creation Time": {"type": "date", "format": "E dd MMM yyyy HH:mm:ss a z"},
    "Document Creation Time": {"type": "date", "format": "E dd MMM yyyy HH:mm:ss a z"},
    "Document Modification Time": {"type": "date", "format": "E dd MMM yyyy HH:mm:ss a z"},
    "Email Received Time": {"type": "date", "format": "E dd MMM yyyy HH:mm:ss a z"},
    "Email Sent Time": {"type": "date", "format": "E dd MMM yyyy HH:mm:ss a z"},
    "Modification Time": {"type": "date", "format": "E dd MMM yyyy HH:mm:ss a z"}
    }
    }
    }
    } 
    

    我的日期格式:文件创建时间:2001年11月2日星期五上午06:28:37

    我们将不胜感激。

    提前谢谢。

    1 回复  |  直到 7 年前
        1
  •  0
  •   ben5556    7 年前

    看起来像你的 Document Modification Time 字段的格式不正确,因为它出现在 _ignored 在搜索查询响应中。在索引映射中将“忽略格式错误的字段”设置设置为true。

    推荐文章