# Pass Context Data for Plugin

**URL:** <https://discuss.elastic.co/t/pass-context-data-for-plugin/54754>\
**Category:** Elasticsearch\
**Created:** [July 5, 2016, 2:59pm UTC](https://discuss.elastic.co/t/pass-context-data-for-plugin/54754 "2016-07-05T14:59:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Isaias\_Barroso](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/isaias_barroso/32/3980_2.png) [@Isaias\_Barroso](https://discuss.elastic.co/u/Isaias_Barroso)\
**Post date:** [July 5, 2016, 2:59pm UTC](https://discuss.elastic.co/t/pass-context-data-for-plugin/54754/1 "2016-07-05T14:59:56Z")

</div>

Hi all,

I'm trying to figure out how to pass a context data and intercept it on a plugin for example to log an information. I'm thinking if would be possible to set a Header on Transport layer (like setting a HTTP header) but I don't see an option for it.

Does anybody have some suggestion or can point a documentation for that?

Best regards

---

<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:** [July 5, 2017, 10:37pm UTC](https://discuss.elastic.co/t/pass-context-data-for-plugin/54754/2 "2017-07-05T22:37:55Z")

</div>

Closed on July 5, 2017, 10:37pm UTC


