# Set custom hostname for Elastic-Agent

**URL:** <https://discuss.elastic.co/t/set-custom-hostname-for-elastic-agent/363146>\
**Category:** Elastic Agent\
**Created:** [July 15, 2024, 12:00pm UTC](https://discuss.elastic.co/t/set-custom-hostname-for-elastic-agent/363146 "2024-07-15T12:00:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![disi\_90](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/disi_90/32/138704_2.png) [@disi\_90](https://discuss.elastic.co/u/disi_90)\
**Post date:** [July 15, 2024, 12:00pm UTC](https://discuss.elastic.co/t/set-custom-hostname-for-elastic-agent/363146/1 "2024-07-15T12:00:00Z")

</div>

Hello community,

Is there a possibility to set a custom hostname for my Elastic host when installing Elastic Agent or after the installation in the configuration files? The reason is that we are using system aliases under Linux to segregate our hosts, and we would like to use the alias of the host in Elastic and Fleet.

Thank you for your support!
