I have elk stack 7.11.1 setup with apm as central server.
Have configured apm for java microservice and getting data in elasticsearch properly.
Have 2 questions
I haven't set service environment variable in agent config and want to do it on central server. I have tried following.
I will be having multiple microservices for multiple applications so will like to create a field application : value when service.name contains some string.
So I have an application with 40 microservices. Application name is Instaclaim.
Now in apm tab I can get 40 microservices by 40 names. What I want to do is create a field "Application_name": "Instaclaim" , "Application_name": "ESB".
This should be created after matching part of string present in service.name.
I haven't set service environment variable in agent config and want to do it on central server. I have tried following. apm-server.default_service_environment: "Production"
That is the way to do it. The apm-server.default_service_environment config was introduced in 7.13.0, which was just released last week, so you would need to upgrade.
I will be having multiple microservices for multiple applications so will like to create a field application : value when service.name contains some string.
At the moment we don't have any configuration to do this centrally, though it sounds like a good feature request -- associating services with business applications.
You have at least two options that I can think of:
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.