# Can I get the data analysis range time?

**URL:** https://discuss.elastic.co/t/can-i-get-the-data-analysis-range-time/354306
**Category:** Kibana
**Created:** [February 28, 2024, 7:50am UTC](https://discuss.elastic.co/t/can-i-get-the-data-analysis-range-time/354306 "2024-02-28T07:50:50Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![yuta.otsubo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yuta.otsubo/32/132147_2.png) [@yuta.otsubo](https://discuss.elastic.co/u/yuta.otsubo)
#### Post date: [February 28, 2024, 7:50am UTC](https://discuss.elastic.co/t/can-i-get-the-data-analysis-range-time/354306/1 "2024-02-28T07:50:50Z")

</div>

I want to get the data analysis range time in kibana alert and use it for message setting.

kibana version: 7.7.1

The monitor settings are as follows

```auto
{
    "size": 0,
    "query": {
        "bool": {
            "filter": [
                {
                    "range": {
                        "status": {
                            "from": 500,
                            "to": 599,
                            "include_lower": true,
                            "include_upper": true,
                            "boost": 1
                        }
                    }
                },
                {
                    "range": {
                        "@timestamp": {
                            "from": "{{period_end}}||-5m",
                            "to": "{{period_end}}",
                            "include_lower": true,
                            "include_upper": false,
                            "format": "epoch_millis",
                            "boost": 1
                        }
                    }
                }
            ],
            "adjust_pure_negative": true,
            "boost": 1
        }
    },
    "aggregations": {
        "aggs_status": {
            "terms": {
                "field": "status",
                "size": 999,
                "min_doc_count": 300,
                "shard_min_doc_count": 0,
                "show_term_doc_count_error": false,
                "order": [
                    {
                        "_count": "desc"
                    },
                    {
                        "_key": "asc"
                    }
                ]
            }
        }
    }
}

```

Monitor schedule is every minute. Therefore, "periodStart" and "periodEnd," which can be used in messages, are set to 1 minute.

```auto
{
    "periodStart": "2024-02-28T07:41:27Z",
    "periodEnd": "2024-02-28T07:42:27Z",
    "results": [
        {

```

My desired value is a 5 minute interval. Can I get the time of this interval?

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [March 27, 2024, 7:50am UTC](https://discuss.elastic.co/t/can-i-get-the-data-analysis-range-time/354306/2 "2024-03-27T07:50:56Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
