# Heartbeat: HTTP check with dynamic url prameter

**URL:** https://discuss.elastic.co/t/heartbeat-http-check-with-dynamic-url-prameter/275813
**Category:** Beats
**Tags:** heartbeat
**Created:** [June 14, 2021, 9:14am UTC](https://discuss.elastic.co/t/heartbeat-http-check-with-dynamic-url-prameter/275813 "2021-06-14T09:14:10Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ibexit](https://avatars.discourse-cdn.com/v4/letter/i/a88e4f/32.png) [@ibexit](https://discuss.elastic.co/u/ibexit)
#### Post date: [June 14, 2021, 9:14am UTC](https://discuss.elastic.co/t/heartbeat-http-check-with-dynamic-url-prameter/275813/1 "2021-06-14T09:14:10Z")

</div>

Hi,

we´re trying to have some kind of dynamic parameter in the monitored URL in order to prevent the existing cache infrastructure deliver the response. We need to check the underlying infrastructure and not the cache.

I've tried to export an OS environment variable (which is kept updated by cron) in the URL like  
`http://www.example.com/foo/bar?ts=${NOW}`

But the heartbeat log shows the following error:  
`ERROR [reload] cfgfile/list.go:69 Unable to hash given config: error_text accessing '0.hosts' (source:'/etc/heartbeat/monitors.d/....`

Any idea how to fix the error or implement such kind of functionality in a different manner?

Thanks in advance!

---

<div class="post-metadata">

### Author: ![Andrew\_Cholakian1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrew_cholakian1/32/3612_2.png) [@Andrew\_Cholakian1](https://discuss.elastic.co/u/Andrew_Cholakian1)
#### Post date: [June 21, 2021, 4:43pm UTC](https://discuss.elastic.co/t/heartbeat-http-check-with-dynamic-url-prameter/275813/2 "2021-06-21T16:43:44Z")

</div>

That is not something we currently support, but may come in the future in the form of scriptable API checks with our synthetics product. That's not something we are actively working on at the moment, but is something we would like to do in the medium to long-term.

---

<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 19, 2021, 6:43pm UTC](https://discuss.elastic.co/t/heartbeat-http-check-with-dynamic-url-prameter/275813/3 "2021-07-19T18:43:47Z")

</div>

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