#  How to Customize the service.name Field in Elastic Agent

**URL:** <https://discuss.elastic.co/t/how-to-customize-the-service-name-field-in-elastic-agent/373164>\
**Category:** Elastic Observability\
**Tags:** fleet\
**Created:** [January 14, 2025, 10:36am UTC](https://discuss.elastic.co/t/how-to-customize-the-service-name-field-in-elastic-agent/373164 "2025-01-14T10:36:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![marload1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marload1/32/140651_2.png) [@marload1](https://discuss.elastic.co/u/marload1)\
**Post date:** [January 14, 2025, 10:36am UTC](https://discuss.elastic.co/t/how-to-customize-the-service-name-field-in-elastic-agent/373164/1 "2025-01-14T10:36:22Z")

</div>

Hello,

In Elastic Agent, it seems that logs are collected, transformed into documents, and then converted to the Elastic Common Schema (ECS). During this process, the `service.name` field is populated by parsing the value of the `app.kubernetes.io/name` Kubernetes label.

However, I would like to configure the `service.name` field based on a different label instead of `app.kubernetes.io/name`.

I am currently deploying this setup using the Fleet Kubernetes Integration. Could you advise on how to modify this configuration?
