# Filter URL Field by Watcher

**URL:** <https://discuss.elastic.co/t/filter-url-field-by-watcher/218153>\
**Category:** Kibana\
**Created:** [February 6, 2020, 10:57am UTC](https://discuss.elastic.co/t/filter-url-field-by-watcher/218153 "2020-02-06T10:57:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mord](https://avatars.discourse-cdn.com/v4/letter/m/ed8c4c/32.png) [@mord](https://discuss.elastic.co/u/mord)\
**Post date:** [February 6, 2020, 10:57am UTC](https://discuss.elastic.co/t/filter-url-field-by-watcher/218153/1 "2020-02-06T10:57:01Z")

</div>

Hi everyone,  
How can I filter URL Field before the email action?

Example:

URL: [https://discuss.elastic.co/](https://discuss.elastic.co/)

URL\_FILTER: [https://discuss](https://discuss)[.]elastic[.]co/

---

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [February 12, 2020, 12:26pm UTC](https://discuss.elastic.co/t/filter-url-field-by-watcher/218153/2 "2020-02-12T12:26:35Z")

</div>

I'm not sure what you are referring too, but if `URL` is a field obtained from the input query, you can use a scripted field using painless to process the field before it gets passed to the email action. In the email action simply use the scripted field instead of the actual one. [https://www.elastic.co/guide/en/kibana/current/scripted-fields.html](https://www.elastic.co/guide/en/kibana/current/scripted-fields.html)

---

<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 11, 2020, 12:26pm UTC](https://discuss.elastic.co/t/filter-url-field-by-watcher/218153/3 "2020-03-11T12:26:37Z")

</div>

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