elastic / elastic/elastic-agent

[Elastic Agent] Provide the ability for the user to set the name of their agent during installation

Open
#86 19 comments 10 reactions 0 assignees View on GitHub
enhancement Team:Elastic-Agent-Control-Plane
Dominant language
Go
Stars
275
Forks
264
Avg merge
1d 20h
Merged PRs (30d)
303

Description

**Use Case:** Currently the name attached to the agent is chosen by Elastic - as in derived from some other entity (i.e machine name). Often these names have no significance to the user of our product who many need to better visually differentiate. In some instances the user is operating a multi tenanted environment and would like to encode the tenant name/ID into the agent name.

**Proposal:** Provide a flag for the user to overwrite the given name during installation/enrollment. This name should appear in the Fleet UI.

**Suggested syntax:**

elastic-agent enroll --url=https:// --enrollment-token= --name=”CEO laptop”

elastic-agent install --url=https:// --enrollment-token= --name=”CEO laptop”

Contributor guide

Open the contributing guide

Research direction

Start with the elastic-agent enroll and install entry points described in the issue, then trace how the agent name is currently derived and sent for display. Check both installation paths and verify that the supplied --name value appears in Fleet UI while the existing default remains unchanged when the flag is omitted.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend, cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.