How could I change the "agent.name" in a Elastic Agent instance? 8.18

Once I’ve used the version 8.5 and we could overide the “agent.name” as well as add some tags in the documents generated by the service by editing the “mtricbeat.yaml” file. But as of now the document no longer exists and I’ve seen no other way to make the change happen.

I’d appreciate any help on the matter.

Hello @SamuelSMendes

I see below similar issue open as per your requirement :

For now i believe you can make use of tags which is available to filter your agents :

Thanks!!

1 Like

I see the option there but even once placed in the agent I can’t find any document with the new tag being adressed at.

Shouldn’t the new tag be added to the new documents generated by the agent?

Thanks for the quick answer.

No, this tag is only used for filtering on the Fleet console, they will not be added to documents.

2 Likes

Thank you for the reply @leandrojmp.

Is there any way I could get to the bottom of this? To change the “agent.name” or setup a tag to retrieve in the documents?