# Api Key

**URL:** <https://discuss.elastic.co/t/api-key/262907>\
**Category:** Elasticsearch\
**Created:** [February 1, 2021, 9:03pm UTC](https://discuss.elastic.co/t/api-key/262907 "2021-02-01T21:03:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ukuleleplayer](https://avatars.discourse-cdn.com/v4/letter/u/7c8e57/32.png) [@ukuleleplayer](https://discuss.elastic.co/u/ukuleleplayer)\
**Post date:** [February 1, 2021, 9:03pm UTC](https://discuss.elastic.co/t/api-key/262907/1 "2021-02-01T21:03:19Z")

</div>

I'm trying to see if there's a way to replace the **cloud.auth** variable in the auditbeat.yml file with an api-key. Is there any way to do 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:** [March 1, 2021, 9:03pm UTC](https://discuss.elastic.co/t/api-key/262907/2 "2021-03-01T21:03:45Z")

</div>

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