# Create an alias for Fleet Agents

**URL:** <https://discuss.elastic.co/t/create-an-alias-for-fleet-agents/361302>\
**Category:** Elastic Agent\
**Tags:** fleet\
**Created:** [June 12, 2024, 6:50am UTC](https://discuss.elastic.co/t/create-an-alias-for-fleet-agents/361302 "2024-06-12T06:50:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![otortosa](https://avatars.discourse-cdn.com/v4/letter/o/90db22/32.png) [@otortosa](https://discuss.elastic.co/u/otortosa)\
**Post date:** [June 12, 2024, 6:50am UTC](https://discuss.elastic.co/t/create-an-alias-for-fleet-agents/361302/1 "2024-06-12T06:50:33Z")

</div>

Hello!

In my system have several hosts that their hostname is a generic one, cannot be change due production affectation.  
My question is, can it be to add an alias for a Fleet Agent?

For example. DESKTOP-RJGJEAFKG and an alias that will be NSS-VM.

Found that a tag can be added in the Fleet Hosts, but how can I observe this tags in the Observability Stream?

Thanks in advance!

Kind regards,

---

<div class="post-metadata">

**Author:** ![Nima\_Rezainia](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nima_rezainia/32/88626_2.png) [@Nima\_Rezainia](https://discuss.elastic.co/u/Nima_Rezainia)\
**Post date:** [June 13, 2024, 6:23am UTC](https://discuss.elastic.co/t/create-an-alias-for-fleet-agents/361302/2 "2024-06-13T06:23:32Z")

</div>

I believe this issue may solve the problem for you, allowing you to set the name: [[Elastic Agent] Provide the ability for the user to set the name of their agent during installation · Issue #86 · elastic/elastic-agent · GitHub](https://github.com/elastic/elastic-agent/issues/86)

---

<div class="post-metadata">

**Author:** ![otortosa](https://avatars.discourse-cdn.com/v4/letter/o/90db22/32.png) [@otortosa](https://discuss.elastic.co/u/otortosa)\
**Post date:** [June 13, 2024, 7:27am UTC](https://discuss.elastic.co/t/create-an-alias-for-fleet-agents/361302/3 "2024-06-13T07:27:26Z")

</div>

Good Morning Nima,

Thanks for the reply!  
Already try this but this is the error showed.  
./elastic-agent install --url=[https://xxxx:8220](https://xxxx:8220) --enrollment-token=xx== --name="apx-int-pro-01"

unknown flag: --name

---

<div class="post-metadata">

**Author:** ![Nima\_Rezainia](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nima_rezainia/32/88626_2.png) [@Nima\_Rezainia](https://discuss.elastic.co/u/Nima_Rezainia)\
**Post date:** [June 14, 2024, 4:07am UTC](https://discuss.elastic.co/t/create-an-alias-for-fleet-agents/361302/4 "2024-06-14T04:07:57Z")

</div>

this is a future feature on the roadmap.
