How to Customize the service.name Field in Elastic Agent

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?