# Map serivce url to service/operation

**URL:** <https://discuss.elastic.co/t/map-serivce-url-to-service-operation/256642>\
**Category:** Logstash\
**Created:** [November 25, 2020, 11:05am UTC](https://discuss.elastic.co/t/map-serivce-url-to-service-operation/256642 "2020-11-25T11:05:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rmrfchik](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rmrfchik/32/76332_2.png) [@rmrfchik](https://discuss.elastic.co/u/rmrfchik)\
**Post date:** [November 25, 2020, 11:05am UTC](https://discuss.elastic.co/t/map-serivce-url-to-service-operation/256642/1 "2020-11-25T11:05:34Z")

</div>

I have a number of services across servers, each service serves urls like

- /service1/operation1
- /service1/operation2?data
- /service2/path/operation3/data1
- /service2/path/operation3/data2  
I need to measure metrics for given service operations, in examples it are:
- /service1/operation1
- /service1/operation2
- /service2/path/operation3

So, somehow I need to discard trailing characters. Should I do it with logstash (and how, given the list is intended to change), or in ElasticSearch?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 23, 2020, 11:05am UTC](https://discuss.elastic.co/t/map-serivce-url-to-service-operation/256642/2 "2020-12-23T11:05:57Z")

</div>

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