# Environment name instead of hostname

**URL:** <https://discuss.elastic.co/t/environment-name-instead-of-hostname/305359>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [May 22, 2022, 8:06pm UTC](https://discuss.elastic.co/t/environment-name-instead-of-hostname/305359 "2022-05-22T20:06:47Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)\
**Post date:** [May 23, 2022, 7:19am UTC](https://discuss.elastic.co/t/environment-name-instead-of-hostname/305359/4 "2022-05-23T07:19:42Z")

</div>

No, you will not have the value replacement. Instead you will additional field/tag which will help in the filtering. You will have to modify the dashboard based on named fields.  
Use fields.env or fields.hostalias to add a hostname alias.

If you want to replace the value use script processor [link](https://discuss.elastic.co/t/find-and-replace-string-in-message-field/253574)

> **[Script Processor | Metricbeat Reference \[8.2\] | Elastic](https://www.elastic.co/guide/en/beats/metricbeat/current/processor-script.html)**

---

_[View the full topic](https://discuss.elastic.co/t/environment-name-instead-of-hostname/305359)._
