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

a0x5cqrl  于 2021-06-14  发布在  ElasticSearch
关注(0)|答案(1)|浏览(404)

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

它在elasticsearch查询中工作。

我的Map如下:

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
我们将不胜感激。
提前谢谢。

uajslkp6

uajslkp61#

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

相关问题