beats icon indicating copy to clipboard operation
beats copied to clipboard

Issue with Elastic Agent ID duplication

Open Harmlos opened this issue 1 year ago • 2 comments

Describe the enhancement:

It is necessary to implement the ability to "remove/reset" the value of agent.id for an installed agent without reinstalling the agent. Move the agent.id to a file in a separate directory that can be deleted/modified as needed, leading to a change in the agent's identifier. Implement the reset functionality by using the command ".\elastic-agent --reset-agent.id" to allow the execution of the command as part of an OS cloning script or for VDI scenarios.

Describe a specific use case for the enhancement or feature:

In certain scenarios, it is crucial to create a copy of a functioning operating system for the subsequent use by a user. This can include

Creating a golden image for installing the OS on new computers, a unified image with pre-installed software. It's not always feasible to install additional software after the OS deployment.

Creating an image for Virtual Desktop Infrastructure (VDI) since the philosophy is that a VM machine lives from booting to shutdown, and it doesn't have the capability to install software during runtime, as it may exist for minutes to many days.

In the current agent implementation, there is no capability to change the agent.id without reinstalling the agent, which significantly complicates administration. In this context, all VDI pool machines in the console are presented as a single host, just like workstations installed from a single golden image

Harmlos avatar Jan 25 '24 11:01 Harmlos

This issue doesn't have a Team:<team> label.

botelastic[bot] avatar Jan 25 '24 11:01 botelastic[bot]

Could the development team provide an opinion on the feasibility of implementing this feature?

Harmlos avatar May 21 '24 11:05 Harmlos

I second this issue... I'd love to hear the dev team's opinion on this too... We also have a similar use case

SaigaGentil avatar Apr 24 '25 08:04 SaigaGentil