# Need to set alert which would trigger when API key expires in Elastic stack

**URL:** <https://discuss.elastic.co/t/need-to-set-alert-which-would-trigger-when-api-key-expires-in-elastic-stack/301073>\
**Category:** Kibana\
**Created:** [March 30, 2022, 10:31am UTC](https://discuss.elastic.co/t/need-to-set-alert-which-would-trigger-when-api-key-expires-in-elastic-stack/301073 "2022-03-30T10:31:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sidharth\_vijayakumar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sidharth_vijayakumar/32/97257_2.png) [@sidharth\_vijayakumar](https://discuss.elastic.co/u/sidharth_vijayakumar)\
**Post date:** [March 30, 2022, 10:31am UTC](https://discuss.elastic.co/t/need-to-set-alert-which-would-trigger-when-api-key-expires-in-elastic-stack/301073/1 "2022-03-30T10:31:36Z")

</div>

Need to set an alert that would trigger 10days before my API key expiry. So in elastic stack am trying to use API key for authentication in the Kubernetes cluster. The API key needs to have an expiry of 1 year but when it's about to expire I need to get an alert. How do I set up such an alert?

---

<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:** [April 27, 2022, 10:31am UTC](https://discuss.elastic.co/t/need-to-set-alert-which-would-trigger-when-api-key-expires-in-elastic-stack/301073/2 "2022-04-27T10:31:53Z")

</div>

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