# How to disable add\_cloud\_metadata processing in elastic-agents

**URL:** <https://discuss.elastic.co/t/how-to-disable-add-cloud-metadata-processing-in-elastic-agents/357613>\
**Category:** Elastic Agent\
**Created:** [April 17, 2024, 12:42pm UTC](https://discuss.elastic.co/t/how-to-disable-add-cloud-metadata-processing-in-elastic-agents/357613 "2024-04-17T12:42:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Toony](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/toony/32/18458_2.png) [@Toony](https://discuss.elastic.co/u/Toony)\
**Post date:** [April 17, 2024, 12:42pm UTC](https://discuss.elastic.co/t/how-to-disable-add-cloud-metadata-processing-in-elastic-agents/357613/1 "2024-04-17T12:42:12Z")

</div>

Hi everybody,  
Is there a way to disable the default processing of the add\_cloud\_metadata from the "elastic-agent.yml" configuration file ?

This is very annoying as at each start of the agent it sends a lot of agent errors trying to contact different cloud providers through non-routable ips...

So there are false errors, a lot of unused messages, some cpu and network operations while not really needed and some elastic user time spent to understand errors traces which are not... errors.

In the same place I would like to say an elastic-agent complete yaml schema would be usefull as the documentation is a little bit messy when it comes to put things together in a larger context...  
It would be great to have a way of printing the complete actual configuration yaml file with all default values REALLY set and explicited. Is there a way I do not know to do that ?

Thanks for your help

---

<div class="post-metadata">

**Author:** ![yago82](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yago82/32/97755_2.png) [@yago82](https://discuss.elastic.co/u/yago82)\
**Post date:** [April 19, 2024, 9:00am UTC](https://discuss.elastic.co/t/how-to-disable-add-cloud-metadata-processing-in-elastic-agents/357613/2 "2024-04-19T09:00:10Z")

</div>

Hi,

do you try to disable the `add_cloud_metadata` processor in the Elastic Agent? probably you can modify the `elastic-agent.yml` configuration file.

Regards

---

<div class="post-metadata">

**Author:** ![Toony](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/toony/32/18458_2.png) [@Toony](https://discuss.elastic.co/u/Toony)\
**Post date:** [April 24, 2024, 7:53am UTC](https://discuss.elastic.co/t/how-to-disable-add-cloud-metadata-processing-in-elastic-agents/357613/3 "2024-04-24T07:53:50Z")

</div>

Yes it is exactly what I am trying to do 😉

But I do not find the way to achieve this... It seems this processors is added without telling to do so in the agent.yml. (A bad things I personnally think because hidden things or behaviors are dangerous or useless almost time)

Elastic should probably stop to hide some default behavior.  
A default behavior could simply appear in all default agents Kibana generated conf with a kind of "enabled: true" explicitly set.

Implicit things kill knowledge and make time loosed to look at the doc for something we want not to use ... So sad...

Do you know if I miss the magic parameter and which it is ?  
Thanks for your help

---

<div class="post-metadata">

**Author:** ![peter.verhage](https://avatars.discourse-cdn.com/v4/letter/p/3bc359/32.png) [@peter.verhage](https://discuss.elastic.co/u/peter.verhage)\
**Post date:** [September 4, 2024, 11:27am UTC](https://discuss.elastic.co/t/how-to-disable-add-cloud-metadata-processing-in-elastic-agents/357613/4 "2024-09-04T11:27:04Z")

</div>

@Toony very true. We are also trying to disable this behaviour, but can't seem to achieve this.  
We've also seen this github issue regarding this [Allow disabling and configuring the add\_x\_metadata default global processors · Issue #4670 · elastic/elastic-agent · GitHub](https://github.com/elastic/elastic-agent/issues/4670)  
But no solution as of yet.
