# Replace Characters in Search Results and Group By

**URL:** https://discuss.elastic.co/t/replace-characters-in-search-results-and-group-by/77903
**Category:** Kibana
**Created:** [March 8, 2017, 10:01pm UTC](https://discuss.elastic.co/t/replace-characters-in-search-results-and-group-by/77903 "2017-03-08T22:01:35Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![cr\_katz](https://avatars.discourse-cdn.com/v4/letter/c/f6c823/32.png) [@cr\_katz](https://discuss.elastic.co/u/cr_katz)
#### Post date: [March 8, 2017, 10:01pm UTC](https://discuss.elastic.co/t/replace-characters-in-search-results-and-group-by/77903/1 "2017-03-08T22:01:35Z")

</div>

Hello All,  
I extracted a set of url's using Kibana and see that the only difference in the url's is a unique ID. After replacing the unique ID with a '\*' , I need to group identical urls and get a count for each group.

Please advise.

Thanks  
crkatz

---

<div class="post-metadata">

### Author: ![Joe\_Fleming](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joe_fleming/32/3561_2.png) [@Joe\_Fleming](https://discuss.elastic.co/u/Joe_Fleming)
#### Post date: [March 9, 2017, 9:03pm UTC](https://discuss.elastic.co/t/replace-characters-in-search-results-and-group-by/77903/2 "2017-03-09T21:03:06Z")

</div>

Sounds like you have log data you're trying to visualize. Are you simply storing the full URLs, and looking for a count of each one? Are you looking for the counts of the URLs bucketed by time?

If that's the case, all you should have to do is use a count metric on the y-axis (the default), set the x-axis to a date histogram using your index pattern's time field, and do a split series using a terms agg and the field where the URL is stored.

---

<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: [April 6, 2017, 9:03pm UTC](https://discuss.elastic.co/t/replace-characters-in-search-results-and-group-by/77903/3 "2017-04-06T21:03:32Z")

</div>

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