# Rules and Connectors: Include Original Event

**URL:** <https://discuss.elastic.co/t/rules-and-connectors-include-original-event/305189>\
**Category:** Elastic Security\
**Created:** [May 19, 2022, 12:52pm UTC](https://discuss.elastic.co/t/rules-and-connectors-include-original-event/305189 "2022-05-19T12:52:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomx1](https://avatars.discourse-cdn.com/v4/letter/t/779978/32.png) [@tomx1](https://discuss.elastic.co/u/tomx1)\
**Post date:** [May 19, 2022, 12:52pm UTC](https://discuss.elastic.co/t/rules-and-connectors-include-original-event/305189/1 "2022-05-19T12:52:58Z")

</div>

I'm playing around with Kibana alert rules in combination with an index connector. I've successfully created an alert based on a search query which indexes an event to a defined index "Elasticsearch-alerting" if a result has been found.  
All good so far, but I have not found a way to include fields of the message which triggered the alert (my threshold is "if greater than zero"). The documentation has this as example:

```auto
{
    "rule_id": "{{ruleId}}",
    "rule_name": "{{ruleName}}",
    "alert_id": "{{alertId}}",
    "context_message": "{{context.message}}"
}

```

There are also a view other variables to use, but it seems that I can not include information of the original event? (We are using Stack version 7.16)

---

<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 16, 2022, 12:53pm UTC](https://discuss.elastic.co/t/rules-and-connectors-include-original-event/305189/2 "2022-06-16T12:53:16Z")

</div>

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