# Remove specific part of url from logstash after match

**URL:** <https://discuss.elastic.co/t/remove-specific-part-of-url-from-logstash-after-match/117948>\
**Category:** Logstash\
**Created:** [February 1, 2018, 7:10am UTC](https://discuss.elastic.co/t/remove-specific-part-of-url-from-logstash-after-match/117948 "2018-02-01T07:10:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![RamyaGowda](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ramyagowda/32/27440_2.png) [@RamyaGowda](https://discuss.elastic.co/u/RamyaGowda)\
**Post date:** [February 1, 2018, 7:10am UTC](https://discuss.elastic.co/t/remove-specific-part-of-url-from-logstash-after-match/117948/1 "2018-02-01T07:10:04Z")

</div>

Hi

I want to remove a specific part from url , for example i have  
/documents/del/123456  
/documents/del/15689  
/documents/del/580867

like this , and i want to remove the number's from url so that it will be treated as single url when i do aggregation on url or visualizing its request time or response time in kibana

How could i achieve this , Please help me

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [February 1, 2018, 7:30am UTC](https://discuss.elastic.co/t/remove-specific-part-of-url-from-logstash-after-match/117948/2 "2018-02-01T07:30:34Z")

</div>

Use a mutate filter and its gsub option.

---

<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:** [March 1, 2018, 7:31am UTC](https://discuss.elastic.co/t/remove-specific-part-of-url-from-logstash-after-match/117948/3 "2018-03-01T07:31:27Z")

</div>

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