# Apply conditions in http monitor , heartbeat

**URL:** https://discuss.elastic.co/t/apply-conditions-in-http-monitor-heartbeat/270587
**Category:** Beats
**Tags:** heartbeat
**Created:** [April 19, 2021, 1:32pm UTC](https://discuss.elastic.co/t/apply-conditions-in-http-monitor-heartbeat/270587 "2021-04-19T13:32:52Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Kartikey\_Bhatore](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kartikey_bhatore/32/70145_2.png) [@Kartikey\_Bhatore](https://discuss.elastic.co/u/Kartikey_Bhatore)
#### Post date: [April 19, 2021, 1:32pm UTC](https://discuss.elastic.co/t/apply-conditions-in-http-monitor-heartbeat/270587/1 "2021-04-19T13:32:52Z")

</div>

Hello ,

I am using heartbeat 6.5.3  
Do we have a option to apply conditions at the time of http URL check. eg  
if URL1 is up then only check URL 2 , if URL2 status is also UP then only status : UP  
if URL1 is down then do not check URL2 and set status as down  
and so on .....

Thanks 🙂

---

<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: [May 4, 2021, 6:35pm UTC](https://discuss.elastic.co/t/apply-conditions-in-http-monitor-heartbeat/270587/2 "2021-05-04T18:35:06Z")

</div>

This is something that could be accomplished with [synthetics](https://www.elastic.co/guide/en/observability/master/synthetic-monitoring.html), where you have the full power of Javascript at your disposal. It is not possible with lightweight checks.

As a note, Synthetics is currently experimental, and you should follow our latest releases if you plan on using 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: [June 1, 2021, 8:35pm UTC](https://discuss.elastic.co/t/apply-conditions-in-http-monitor-heartbeat/270587/3 "2021-06-01T20:35:37Z")

</div>

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