# Aggregate results of wild-card "include pattern" into a single graph

**URL:** <https://discuss.elastic.co/t/aggregate-results-of-wild-card-include-pattern-into-a-single-graph/47646>\
**Category:** Kibana\
**Created:** [April 18, 2016, 11:59am UTC](https://discuss.elastic.co/t/aggregate-results-of-wild-card-include-pattern-into-a-single-graph/47646 "2016-04-18T11:59:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeremy\_Colton](https://avatars.discourse-cdn.com/v4/letter/j/51bf81/32.png) [@Jeremy\_Colton](https://discuss.elastic.co/u/Jeremy_Colton)\
**Post date:** [April 18, 2016, 11:59am UTC](https://discuss.elastic.co/t/aggregate-results-of-wild-card-include-pattern-into-a-single-graph/47646/1 "2016-04-18T11:59:13Z")

</div>

Hi,  
I am building graphs to show stats on a specific website. A single site with 1 domain may have many referers due to the path being different eg, here are 3:

[http://a.b.com](http://a.b.com)  
[http://a.b.com/page1/](http://a.b.com/page1/)  
[http://a.b.com/page2/](http://a.b.com/page2/)

So when aggregating by referer.raw I use the 'advanced' option 'include pattern' and I put the following wild-card expression:  
._[a.b.com](http://a.b.com)._

This regular expression fetches all referers that contain "[a.b.com](http://a.b.com)" which is great! BUT, it provides a graph per hit so 3 graphs, 1 for each referer! How can I get the result to be aggregated into a single graph?

Many thanks.

---

<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:** [July 6, 2017, 1:55pm UTC](https://discuss.elastic.co/t/aggregate-results-of-wild-card-include-pattern-into-a-single-graph/47646/2 "2017-07-06T13:55:52Z")

</div>


