# Support of mustache templates in http input url attribute

**URL:** <https://discuss.elastic.co/t/support-of-mustache-templates-in-http-input-url-attribute/90818>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [June 26, 2017, 11:23am UTC](https://discuss.elastic.co/t/support-of-mustache-templates-in-http-input-url-attribute/90818 "2017-06-26T11:23:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![brommer](https://avatars.discourse-cdn.com/v4/letter/b/65b543/32.png) [@brommer](https://discuss.elastic.co/u/brommer)\
**Post date:** [June 26, 2017, 11:23am UTC](https://discuss.elastic.co/t/support-of-mustache-templates-in-http-input-url-attribute/90818/1 "2017-06-26T11:23:54Z")

</div>

Hi there,

as stated at [https://www.elastic.co/guide/en/x-pack/current/input-http.html](https://www.elastic.co/guide/en/x-pack/current/input-http.html) mustache templates are supported for different http input attributes like e.g. request.params. It would be great to support it for request.url as well. I am having a use case at the moment, where I receive a full URL and parsing it is kind of messy.

Thanks  
Andreas

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [June 26, 2017, 4:22pm UTC](https://discuss.elastic.co/t/support-of-mustache-templates-in-http-input-url-attribute/90818/2 "2017-06-26T16:22:44Z")

</div>

Hey,

you could try to URI encode the parts of the URL, that should be templatable, something like

```auto
http://www.test.de/%7B%7Bfoo%7D%7D

```

--Alex

---

<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 24, 2017, 4:22pm UTC](https://discuss.elastic.co/t/support-of-mustache-templates-in-http-input-url-attribute/90818/3 "2017-07-24T16:22:53Z")

</div>

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