# Define apm-server api key in Elastic

**URL:** https://discuss.elastic.co/t/define-apm-server-api-key-in-elastic/230352
**Category:** APM
**Tags:** server
**Created:** [April 29, 2020, 10:36am UTC](https://discuss.elastic.co/t/define-apm-server-api-key-in-elastic/230352 "2020-04-29T10:36:32Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![iorfix](https://avatars.discourse-cdn.com/v4/letter/i/9fc348/32.png) [@iorfix](https://discuss.elastic.co/u/iorfix)
#### Post date: [April 29, 2020, 10:36am UTC](https://discuss.elastic.co/t/define-apm-server-api-key-in-elastic/230352/1 "2020-04-29T10:36:32Z")

</div>

Hi there,  
I read documentation about APM api key management. If I undestood correctly, it is possible to create (and store) keys in Elastic, and to propagate them to all APM nodes in the cluster. This should be very useful, but I haven't found a concrete example on how to do it with Elastic API. Is there any reference to look at?  
Tank you

---

<div class="post-metadata">

### Author: ![felixbarny](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/felixbarny/32/27341_2.png) [@felixbarny](https://discuss.elastic.co/u/felixbarny)
#### Post date: [April 29, 2020, 11:21am UTC](https://discuss.elastic.co/t/define-apm-server-api-key-in-elastic/230352/2 "2020-04-29T11:21:56Z")

</div>

Did you see this guide? [https://www.elastic.co/guide/en/apm/server/master/api-key.html](https://www.elastic.co/guide/en/apm/server/master/api-key.html)

---

<div class="post-metadata">

### Author: ![iorfix](https://avatars.discourse-cdn.com/v4/letter/i/9fc348/32.png) [@iorfix](https://discuss.elastic.co/u/iorfix)
#### Post date: [April 29, 2020, 12:11pm UTC](https://discuss.elastic.co/t/define-apm-server-api-key-in-elastic/230352/3 "2020-04-29T12:11:44Z")

</div>

Yes,  
I read it, and this guide is OK for creating keys directly on a apmserver node, using command line.  
I'm looking on the steps needed to create keys on elastic cluster nodes, using API.

---

<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: [May 20, 2020, 8:11am UTC](https://discuss.elastic.co/t/define-apm-server-api-key-in-elastic/230352/4 "2020-05-20T08:11:50Z")

</div>

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