I have deleted a service name in APM using below query from console, but still after few minutes the service name again pop-ups in APM section. I even tried to delete all the apm indexes from Management section, (also restarted apm-server), but still after few minutes service name pop-ups there in APM section.
If I'm understanding this correctly, after you run _delete_by_query the service disappears but then it shows up again after a couple of minutes?
If this is the case it sounds very much like the service is still running and sending data. Can you double-check whether this is the case?
Another reason might be that you have apm data from other versions than 7.7. You can delete across all versions with POST apm-*-*/_delete_by_query
Yes your understanding is correct, service disappears after running the query but re-appears after few minutes.
I have used the apm-agent-attach-1.16.0-standalone.jar method for the apm-agent with my application and i have removed it by giving a stop/start to my application. So, there is no chance apm-agent will automatically get attached to the application, as i was attaching the apm-agent imanually only. Also, i have verified it, as no data is getting showed up in the APM section. Only the service name re-appears.
I am also confirming that there is no apm data from other versions than 7.7
Normally, the service name can only be shown if there's data for that service. Could you search for documents of that service in the discover tab? Maybe there's another instance of that service running somewhere that reports metrics in the background. In that case, you wouldn't see transactions in the UI as there are only metrics. Maybe you accidentally attached the agent to multiple services. Looking at the metadata of the metric events, you should be able to identify the process that's still sending metrics.
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.