# Debugging API Key authentications

**URL:** <https://discuss.elastic.co/t/debugging-api-key-authentications/356009>\
**Category:** Elasticsearch\
**Created:** [March 22, 2024, 4:42pm UTC](https://discuss.elastic.co/t/debugging-api-key-authentications/356009 "2024-03-22T16:42:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![robjennings](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/robjennings/32/122191_2.png) [@robjennings](https://discuss.elastic.co/u/robjennings)\
**Post date:** [March 22, 2024, 4:42pm UTC](https://discuss.elastic.co/t/debugging-api-key-authentications/356009/1 "2024-03-22T16:42:40Z")

</div>

Hello,

I have a 3 node Elastic cluster. Everthing is working fine, but I wen't to the Logs to debugg something else that I ended up fixing and I noticed these warnings:

```auto
{"type": "server", "timestamp": "2024-03-22T16:33:56,992Z", "level": "WARN", "component": "o.e.x.s.a.ApiKeyAuthenticator", "cluster.name": "elk-cluster", "node.name": "node-2", "message": "Authentication using apikey failed - api key has been invalidated", "cluster.uuid": "mceikJOASzQpX9sYrskcbg", "node.id": "zLzmDns4SaqPTfrQ0UK6NQ" }

```

All the errors come from node-2. How can I debug this further to find out what is using API Keys? As far as I'm aware, all my scripts/tools authenticate to Elasticsearch on all nodes (all tools have an array of nodes) and all use username and password. Does this ever happened to anyone? I tried looking for other log files, but so far nothing came up.

Cheers

---

<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 19, 2024, 4:42pm UTC](https://discuss.elastic.co/t/debugging-api-key-authentications/356009/2 "2024-04-19T16:42:54Z")

</div>

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