elasticsearch - 在ElasticSearch/Kibana 5.0中使用Timelion

标签 elasticsearch kibana timelion

我正在尝试在Timelion中可视化时间序列。我在Elasticsearch中有这种格式的几百个数据点-我手动删除了一些我本不想在时间序列图中使用的字段。

        "_index": "foo-2016-11-06",
        "_type": "bar",
        "_id": "7239171989271733678",
        "_score": 1,
        "_source": {
           "timestamp": "2016-11-06T15:27:37.123581+00:00",
           "rank": 2,
        }

我想要的是简单地绘制等级随时间的变化。我发现这篇文章Kibana Timelion plugin how to specify a field in the elastic search似乎描述了同样的事情,并且我了解我应该能够执行.es(metric ='sum:rank')。

我的问题是,无论我如何定义我的timelion查询(甚至只是调用.es(*)),我最终都会得到一条y = 0的水平线。

timelion

到目前为止我尝试过的事情:
  • 将timelion.json中的时间字段从@timefield更改为只是timefield
  • 扩展时间序列窗口(甚至将来)
  • 在timelion.json中将default_index设置为_all。
  • 我知道查询的特定索引包含数据

  • 所有这些都给了我相同的结果,您可以在附图中看到。有谁知道这里会发生什么?

    最佳答案

    如上设置timelion.json:

    {
            "quandl": {
                "key": ""
            },
            "es": {
                "timefield": "timestamp",
                "default_index": "_all",
                "allow_url_parameter": false
            },
            "graphite": {
                "url": "https://www.hostedgraphite.com/UID/ACCESS_KEY/graphite"
            },
            "default_interval": "1h",
            "max_buckets": 2000
    }
    

    将粒度设置为“自动”,并使用上面的Timelion查询:.es(index='foo-2016-11-06', metric='max:rank')

    关于elasticsearch - 在ElasticSearch/Kibana 5.0中使用Timelion,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40451335/

    相关文章:

    c# - Elasticsearch Nest找不到过滤器

    php - 如何使用匹配查询从elasticsearch中单次点击获取所有数据

    java - JsonXContentGenerator 的 Elasticsearch 2.0 NoClassDefFoundError

    docker - 典型的ElasticSearch/Logstash/Kibana部署模型是什么样的

    kubernetes - Keycloak 网守 HTTP 502/10 秒后超时

    elasticsearch - 来自数组长度累积和的Timelion系列

    elasticsearch - 在拆分操作上标记不同的行

    python - Elasticsearch Python客户端索引JSON

    docker - docker-elasticsearch + kibana从保存的对象开始

    elasticsearch - Timelion多次 split