# Using ctx.results Variable in a Message

**URL:** <https://discuss.elastic.co/t/using-ctx-results-variable-in-a-message/216498>\
**Category:** Kibana\
**Tags:** painless\
**Created:** [January 24, 2020, 10:45pm UTC](https://discuss.elastic.co/t/using-ctx-results-variable-in-a-message/216498 "2020-01-24T22:45:56Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [January 29, 2020, 10:31am UTC](https://discuss.elastic.co/t/using-ctx-results-variable-in-a-message/216498/2 "2020-01-29T10:31:57Z")

</div>

You can use this as a guide: [Cannot figure out how to get data from \_source into Watch Output](https://discuss.elastic.co/t/cannot-figure-out-how-to-get-data-from--source-into-watch-output/86446/7)

---

_[View the full topic](https://discuss.elastic.co/t/using-ctx-results-variable-in-a-message/216498)._
