# Global variable

**URL:** <https://discuss.elastic.co/t/global-variable/182909>\
**Category:** Kibana\
**Created:** [May 27, 2019, 12:29pm UTC](https://discuss.elastic.co/t/global-variable/182909 "2019-05-27T12:29:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Manikantaks](https://avatars.discourse-cdn.com/v4/letter/m/57b2e6/32.png) [@Manikantaks](https://discuss.elastic.co/u/Manikantaks)\
**Post date:** [May 27, 2019, 12:29pm UTC](https://discuss.elastic.co/t/global-variable/182909/1 "2019-05-27T12:29:26Z")

</div>

I wanted store data in an array(global variable ) or any data structure . And i want to read from scripted field just to check whether array contains the element or not .How can i achieve this.  
Could any one help on this.

---

<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 24, 2019, 12:29pm UTC](https://discuss.elastic.co/t/global-variable/182909/2 "2019-06-24T12:29:32Z")

</div>

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