# Have created a hack in Kibana and want it to run only once

**URL:** <https://discuss.elastic.co/t/have-created-a-hack-in-kibana-and-want-it-to-run-only-once/96122>\
**Category:** Kibana\
**Created:** [August 7, 2017, 2:04pm UTC](https://discuss.elastic.co/t/have-created-a-hack-in-kibana-and-want-it-to-run-only-once/96122 "2017-08-07T14:04:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nikhil\_ahir](https://avatars.discourse-cdn.com/v4/letter/n/f475e1/32.png) [@nikhil\_ahir](https://discuss.elastic.co/u/nikhil_ahir)\
**Post date:** [August 7, 2017, 2:04pm UTC](https://discuss.elastic.co/t/have-created-a-hack-in-kibana-and-want-it-to-run-only-once/96122/1 "2017-08-07T14:04:59Z")

</div>

Hi Team,

I have created a hack in Kibana and want it to run only once. So on refresh this hack should not run. It should run only once.

Does Kibana provide any provision to achieve this?

---

<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:** [August 8, 2017, 1:25pm UTC](https://discuss.elastic.co/t/have-created-a-hack-in-kibana-and-want-it-to-run-only-once/96122/2 "2017-08-08T13:25:42Z")

</div>

Hello,  
Kibana doesn't officially offer any support for this. You could solve you problem by saving a cookie in local storage and check for it before running your part of the code.

---

<div class="post-metadata">

**Author:** ![nikhil\_ahir](https://avatars.discourse-cdn.com/v4/letter/n/f475e1/32.png) [@nikhil\_ahir](https://discuss.elastic.co/u/nikhil_ahir)\
**Post date:** [August 16, 2017, 9:44am UTC](https://discuss.elastic.co/t/have-created-a-hack-in-kibana-and-want-it-to-run-only-once/96122/3 "2017-08-16T09:44:56Z")

</div>

Thanks for the response 🙂

---

<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:** [September 13, 2017, 9:45am UTC](https://discuss.elastic.co/t/have-created-a-hack-in-kibana-and-want-it-to-run-only-once/96122/4 "2017-09-13T09:45:45Z")

</div>

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