I renamed a service and now I have the new name and the old name. How can I remove the old service name?
Hi Arisbanach,
To get rid of the offending documents you will either have to update the context.service.name
value for all of them, or delete them.
The simplest way to delete the documents is with a query like this:
GET apm*/_delete_by_query
{
"query": {
"bool": {
"filter": [
{
"term": {
"context.service.name": "old-service-name"
}
}
]
}
}
}
Let me know if you have any other questions.
1 Like
This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.