# Create a rule without a query

**URL:** <https://discuss.elastic.co/t/create-a-rule-without-a-query/333314>\
**Category:** Elastic Security\
**Created:** [May 12, 2023, 2:15pm UTC](https://discuss.elastic.co/t/create-a-rule-without-a-query/333314 "2023-05-12T14:15:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![WhiteOwl](https://avatars.discourse-cdn.com/v4/letter/w/5f9b8f/32.png) [@WhiteOwl](https://discuss.elastic.co/u/WhiteOwl)\
**Post date:** [May 12, 2023, 2:15pm UTC](https://discuss.elastic.co/t/create-a-rule-without-a-query/333314/1 "2023-05-12T14:15:56Z")

</div>

Hello, is it possible to create a rule that does not have a query? For example, if I want a rule to fire off every 4-6hrs for analyst to perform a specific task, is that possible?

---

<div class="post-metadata">

**Author:** ![Alexis\_Roberson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexis_roberson/32/113233_2.png) [@Alexis\_Roberson](https://discuss.elastic.co/u/Alexis_Roberson)\
**Post date:** [May 16, 2023, 10:14pm UTC](https://discuss.elastic.co/t/create-a-rule-without-a-query/333314/2 "2023-05-16T22:14:25Z")

</div>

I know you can create a [watcher](https://www.elastic.co/guide/en/elasticsearch/reference/8.7/input-simple.html) that uses a simple input, then add a [trigger](https://www.elastic.co/guide/en/elasticsearch/reference/8.7/trigger-schedule.html#schedule-hourly) that schedules the watcher for every 4-6 hours. For instance, the watcher below schedules a reminder email to be sent to a specific recipient everyday at noon.

```auto
{
  "trigger" : {
    "schedule" : {
      "daily" : { "at" : "noon" }
    }
  },
  "input" : {
    "simple" : {
      "name" : "John"
    }
  },
  "actions" : {
    "reminder_email" : {
      "email" : {
        "to" : "to@host.domain",
        "subject" : "Reminder",
        "body" : "Dear {{ctx.payload.name}}, by the time you read these lines, I'll be gone"
      }
    }
  }
}

```

---

<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:** [June 13, 2023, 10:14pm UTC](https://discuss.elastic.co/t/create-a-rule-without-a-query/333314/3 "2023-06-13T22:14:39Z")

</div>

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