【问题标题】:time-based when configure an index pattern not working配置索引模式时基于时间不起作用
【发布时间】: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


    【解决方案1】:

    简单的问题,简单的答案...我只是忘记在 Discover 部分的右上角设置时间选择器以显示过去的数据:

    【讨论】:

      猜你喜欢
      • 2011-04-30
      • 2013-01-14
      • 2018-01-24
      • 1970-01-01
      • 2019-04-25
      • 2010-12-31
      • 1970-01-01
      • 1970-01-01
      • 2017-09-09
      相关资源
      最近更新 更多