# How to send alert between specific time range in Kibana?

**URL:** <https://discuss.elastic.co/t/how-to-send-alert-between-specific-time-range-in-kibana/220691>\
**Category:** Kibana\
**Tags:** elastic-stack-alerting\
**Created:** [February 24, 2020, 3:40pm UTC](https://discuss.elastic.co/t/how-to-send-alert-between-specific-time-range-in-kibana/220691 "2020-02-24T15:40:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gunjan\_prmr](https://avatars.discourse-cdn.com/v4/letter/g/ed655f/32.png) [@gunjan\_prmr](https://discuss.elastic.co/u/gunjan_prmr)\
**Post date:** [February 24, 2020, 3:40pm UTC](https://discuss.elastic.co/t/how-to-send-alert-between-specific-time-range-in-kibana/220691/1 "2020-02-24T15:40:58Z")

</div>

I have `Kibana alert` which has following condition. Now I want to this to be triggered only between certain time frame, i.e. between 9 AM to 6 PM. How/Where can I add that range?

```
{
    "range": {
        "data.timestamp": {
            "from": "now-1m",
            "to": "now",
            "include_lower": true,
            "include_upper": true,
            "format": "strict_date_optional_time",
            "boost": 1
        }
    }
}
```

---

<div class="post-metadata">

**Author:** ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)\
**Post date:** [March 13, 2020, 6:20am UTC](https://discuss.elastic.co/t/how-to-send-alert-between-specific-time-range-in-kibana/220691/2 "2020-03-13T06:20:14Z")

</div>

If you're looking for information on options for the `range` query, [you can find it here](https://www.elastic.co/guide/en/elasticsearch/reference/5.4/query-dsl-range-query.html) - it is a core feature of the elasticsearch query DSL, not just a feature of a watch.

More such similar questions answered in discuss posts here:

> [@How to set a time range in the watcher?](https://discuss.elastic.co/t/how-to-set-a-time-range-in-the-watcher/93679/6):
>
> Hi, If you haven't changed your query clause to what I recommend, you will get this error because there is a syntax problem in your query clause. You are not properly making an array of clauses in the filter section. You have to look close at the matching {} brackets to see. Please modify it to the following and you'll be fine: "query": { "bool": { "filter": [ { "range": { "timestamp": { …

Thanks  
Rashmi

---

<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:** [April 10, 2020, 6:20am UTC](https://discuss.elastic.co/t/how-to-send-alert-between-specific-time-range-in-kibana/220691/3 "2020-04-10T06:20:16Z")

</div>

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