# Normalizer

**URL:** <https://discuss.elastic.co/t/normalizer/149997>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [September 26, 2018, 12:01pm UTC](https://discuss.elastic.co/t/normalizer/149997 "2018-09-26T12:01:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![a.korshunov](https://avatars.discourse-cdn.com/v4/letter/a/bbce88/32.png) [@a.korshunov](https://discuss.elastic.co/u/a.korshunov)\
**Post date:** [September 26, 2018, 12:01pm UTC](https://discuss.elastic.co/t/normalizer/149997/1 "2018-09-26T12:01:28Z")

</div>

Hi!

I parse IIS logs with Filebeat. Field " iis.access.referrer" has values with GET-method parametes. Example: "[https://www.google.com/search?q=elasticsearch](https://www.google.com/search?q=elasticsearch)"  
I want to see only host name ("[www.google.com](http://www.google.com)") in Kibana (term aggregation). In nornalizer I can not set custom regex pattern.  
How I can do it?

Elasticsearch 6.3.0  
Filebeat 6.4.1

Thanks!

---

<div class="post-metadata">

**Author:** ![pierhugues](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pierhugues/32/48383_2.png) [@pierhugues](https://discuss.elastic.co/u/pierhugues)\
**Post date:** [September 26, 2018, 12:42pm UTC](https://discuss.elastic.co/t/normalizer/149997/2 "2018-09-26T12:42:51Z")

</div>

Hello, I think modifying the IIS module [ingest pipeline](https://www.elastic.co/guide/en/elasticsearch/reference/current/ingest.html) and the [gsub](https://www.elastic.co/guide/en/elasticsearch/reference/current/gsub-processor.html) processor to create a new normalized field with only the host would be the way to do it.

I think you want to sum the request from a specific host?

---

<div class="post-metadata">

**Author:** ![a.korshunov](https://avatars.discourse-cdn.com/v4/letter/a/bbce88/32.png) [@a.korshunov](https://discuss.elastic.co/u/a.korshunov)\
**Post date:** [September 26, 2018, 1:17pm UTC](https://discuss.elastic.co/t/normalizer/149997/3 "2018-09-26T13:17:41Z")

</div>

Thank you very much! I will try it.

---

<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:** [October 24, 2018, 1:17pm UTC](https://discuss.elastic.co/t/normalizer/149997/4 "2018-10-24T13:17:41Z")

</div>

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