Get continuous timestamps of given interval in kibana rollup jobs

孤街浪徒 提交于 2020-02-06 10:01:07

问题


I have created a rollup job in Kibana as follows:

{
    "id": "test-job",
    "index_pattern": "test-index",
    "rollup_index": "test-rollup",
    "cron": "0 * * * * ?",
    "groups": {
      "date_histogram": {
        "interval": "1s",
        "field": "@timestamp",
        "time_zone": "Asia/Colombo"
      },
      "terms": {
        "fields": [
          "transaction"
        ]
      }
    },
    "metrics": [
      {
        "field": "@timestamp",
        "metrics": [
          "value_count"
        ]
      }
    ],
    "timeout": "20s",
    "page_size": 1000
  }

Result is as I expected though it doesn't include time stamps which don't include any data on them.

As an example timestamp second of 07:15:45.000 doesn't include any data. So in rollup data also it doesn't include any data.

But what I want is though any timestamp doesn't include any data it should indicate relevant counts as 0. Timestamps should appear continuously. There shouldn't be any gaps.

Is this possible using current features of Rollup jobs in Kibana? If yes How could I achieve this? Hope you understand the question.

来源:https://stackoverflow.com/questions/57139438/get-continuous-timestamps-of-given-interval-in-kibana-rollup-jobs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!