How to delete amp service?


I want to delete some service ,but I can't find delete button,how can i delete those service?can you help me?

Welcome to the community @xcyk1226!

The easiest way is to wait until the service stops reporting in on its own. If you'd really like to delete a service you'll need to remove the documents associated with it, similar to how you'd rename a service following Update existing data | APM Server Reference [7.15] | Elastic. To delete, change _update_by_query to _delete_by_query and remove the script, like:

POST /apm-*/_delete_by_query
{
  "query": {
    "term": {
      "service.name": {
        "value": "old-service-name"
      }
    }
  }
}

my kibana version is 7.17.1, I execute the cmd , but apm service page also exists service

I try long time,execute next cmd can solve

POST .*apm*/_delete_by_query
{
  "query": {
    "term": {
      "service.name": {
        "value": "web-test"
      }
    }
  }
}

I'm not sure I fully understand, are you saying you needed to execute the delete by query on .*apm* to resolve the issue? That would make sense if you are utilizing data streams (eg if using the APM Integration) - nice work! We will get this into the docs.

yes !

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.