# Ignore API key failure from elastic cluster log

**URL:** <https://discuss.elastic.co/t/ignore-api-key-failure-from-elastic-cluster-log/359902>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-monitoring\
**Created:** [May 21, 2024, 9:42am UTC](https://discuss.elastic.co/t/ignore-api-key-failure-from-elastic-cluster-log/359902 "2024-05-21T09:42:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nightingale\_John](https://avatars.discourse-cdn.com/v4/letter/n/ecccb3/32.png) [@Nightingale\_John](https://discuss.elastic.co/u/Nightingale_John)\
**Post date:** [May 21, 2024, 9:42am UTC](https://discuss.elastic.co/t/ignore-api-key-failure-from-elastic-cluster-log/359902/1 "2024-05-21T09:42:15Z")

</div>

Hi,

For various reasons we have a lot of agents in the wild attempting to connect with aged API keys, e.g.:

[o.e.x.s.a.ApiKeyAuthenticator] [node] Authentication using apikey failed - unable to find apikey with id

Does anyone know a way to exclude these from being logged into the cluster log on servers? they have little to no value for us based on what we're doing with Elastic.

Thanks!
