【发布时间】:2017-01-04 15:29:11
【问题描述】:
嗨!
我在配置索引模式时遇到了一个关于将日期字段设置为 time-based 的问题。当我在时间字段名称上选择我的日期时,我无法对 Discover 部分上的任何数据进行可视化处理。
但是,当我取消选中名为 Index contains time-based events 的框时,会显示所有数据:
也许我在映射过程中忘记了什么?有我为这个索引设置的映射:
"index_test" : {
"mappings": {
"tr": {
"_source": {
"enabled":true
},
"properties" : {
"id" : { "type" : "integer" },
"volume" : { "type" : "integer" },
"high" : { "type" : "float" },
"low" : { "type" : "float" },
"timestamp" : { "type" : "date", "format" : "yyyy-MM-dd HH:mm:ss" }
}
}
}'
}
我目前也在尝试使用timelion,但似乎没有找到任何数据显示。我认为它不能因为这个time-based 未选中...关于如何将此时间戳设置为time-based 而不松动Discover 部分的数据访问的任何想法?
【问题讨论】:
标签: elasticsearch kibana