# Can I create Alert considering field value of the index?

**URL:** https://discuss.elastic.co/t/can-i-create-alert-considering-field-value-of-the-index/320794
**Category:** Logs
**Tags:** elastic-stack-alerting
**Created:** [December 8, 2022, 1:56pm UTC](https://discuss.elastic.co/t/can-i-create-alert-considering-field-value-of-the-index/320794 "2022-12-08T13:56:41Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Vijaykumar\_Deshmukh1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vijaykumar_deshmukh1/32/112786_2.png) [@Vijaykumar\_Deshmukh1](https://discuss.elastic.co/u/Vijaykumar_Deshmukh1)
#### Post date: [December 8, 2022, 1:56pm UTC](https://discuss.elastic.co/t/can-i-create-alert-considering-field-value-of-the-index/320794/1 "2022-12-08T13:56:41Z")

</div>

Hello Here,

simple situation here is i have one index named **hat**

Mapping is herePUT hat

```auto
{
  "mappings": {
    "properties": {
      "@timestamp": {
        "type": "date"
      },
      "jay": {
        "type": "integer"
      }
    }
  }
}

```

document example

"

```auto
_source": {
          "jay": 8,
          "@timestamp": "2022-12-08T19:09:48+00:00"
        }

```

**I want alert to be triggered when field value of jay become 9**

Is it possibel and how please help

---

<div class="post-metadata">

### Author: ![Pratik\_Wadodkar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pratik_wadodkar/32/114449_2.png) [@Pratik\_Wadodkar](https://discuss.elastic.co/u/Pratik_Wadodkar)
#### Post date: [December 9, 2022, 5:48am UTC](https://discuss.elastic.co/t/can-i-create-alert-considering-field-value-of-the-index/320794/2 "2022-12-09T05:48:15Z")

</div>

Hi Vijaykumar,  
you can use the elasticsearch query alert for this  
below I have added the query here hope it will help you  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/0/f06e395a01e53e695d8fa2ab50c9fc4b0ddb00ab.png)

---

<div class="post-metadata">

### Author: ![Vijaykumar\_Deshmukh1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vijaykumar_deshmukh1/32/112786_2.png) [@Vijaykumar\_Deshmukh1](https://discuss.elastic.co/u/Vijaykumar_Deshmukh1)
#### Post date: [December 9, 2022, 5:51am UTC](https://discuss.elastic.co/t/can-i-create-alert-considering-field-value-of-the-index/320794/3 "2022-12-09T05:51:37Z")

</div>

Hi pratik , solved thanks keep it up .

---

<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: [January 6, 2023, 5:52am UTC](https://discuss.elastic.co/t/can-i-create-alert-considering-field-value-of-the-index/320794/4 "2023-01-06T05:52:05Z")

</div>

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