# Rule type Log threshold

**URL:** <https://discuss.elastic.co/t/rule-type-log-threshold/325436>\
**Category:** Kibana\
**Tags:** elastic-stack-alerting\
**Created:** [February 14, 2023, 6:13am UTC](https://discuss.elastic.co/t/rule-type-log-threshold/325436 "2023-02-14T06:13:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![maxxl](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@maxxl](https://discuss.elastic.co/u/maxxl)\
**Post date:** [February 14, 2023, 6:13am UTC](https://discuss.elastic.co/t/rule-type-log-threshold/325436/1 "2023-02-14T06:13:33Z")

</div>

Kibana 8.4.3  
Stack Management \ Rules and Connectors

Connectors type - Server Log  
Rule type - Log threshold

The rule works well.  
How do I send the hostname and the original log (error.message) to the message?

 ![изображение](https://us1.discourse-cdn.com/elastic/original/3X/7/1/71623cb5c5da01d2bf61351df036f350f5786a88.png)

---

<div class="post-metadata">

**Author:** ![Jonathan\_Buttner](https://avatars.discourse-cdn.com/v4/letter/j/9d8465/32.png) [@Jonathan\_Buttner](https://discuss.elastic.co/u/Jonathan_Buttner)\
**Post date:** [February 14, 2023, 12:44pm UTC](https://discuss.elastic.co/t/rule-type-log-threshold/325436/2 "2023-02-14T12:44:22Z")

</div>

Hi @maxxl each rule type provides mustache variables that can be used in the actions. Here is a link to the docs: [Create a logs threshold rule | Observability Guide [master] | Elastic](https://www.elastic.co/guide/en/observability/master/logs-threshold-alert.html#_action_variables) I'm not sure if Logs Threshold will give you access to the hostname and error message but I would try adding some of the available variables and see if they contain what you're looking for.

---

<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 14, 2023, 12:44pm UTC](https://discuss.elastic.co/t/rule-type-log-threshold/325436/3 "2023-03-14T12:44:55Z")

</div>

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