# Synthetic Monitoring in 7.12 version

**URL:** https://discuss.elastic.co/t/synthetic-monitoring-in-7-12-version/310506
**Category:** Elasticsearch
**Created:** [July 25, 2022, 7:27am UTC](https://discuss.elastic.co/t/synthetic-monitoring-in-7-12-version/310506 "2022-07-25T07:27:58Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Baishali](https://avatars.discourse-cdn.com/v4/letter/b/48db29/32.png) [@Baishali](https://discuss.elastic.co/u/Baishali)
#### Post date: [July 25, 2022, 7:27am UTC](https://discuss.elastic.co/t/synthetic-monitoring-in-7-12-version/310506/1 "2022-07-25T07:27:58Z")

</div>

I have installed Elasticsearch ver:7.12.1, Kibana ver:7.12.1, Heartbeat ver:7.17  
I want to add Synthetic monitoring for a URL. Tried a sample inline code but it was not working.  
Steps followed:

1. Installed Elasticsearch
2. Installed Kibana  
3 installed Heartbeat as service  
4 Made the following changes in heatbeat.yml file  
('type:http' is been showing the url in uptime  
but 'type:browser' is not working)  
//Code  
\</\>

* * *

## heartbeat.config.monitors: path: "${path.config}/monitors.d/\*.yml" reload.enabled: false reload.period: 5s heartbeat.monitors:

```
enabled: false
id: my-monitor
name: "My Monitor"
schedule: "@every 10s"
type: http
urls: 
  - "http://localhost:9200"
  - "https://www.google.com"

```

- enabled: false  
id: synthetic-inline-suites  
name: "Elastic website"  
schedule: "@every 1m"  
screenshots: "on"  
source:  
inline:  
script: "\n  
step("load homepage", async () =\> { \n\n  
\x20 await page.goto('[https://www.elastic.co](https://www.elastic.co)'); \n\n  
}); \n\n  
step("hover over products menu", async () =\> { \n\n  
\x20 await page.hover('css=[data-nav-item=products]'); \n\n  
}); "  
type: browser  
urls:
  - "[https://www.elastic.co](https://www.elastic.co)"

- enabled: true  
id: todos  
name: Todos  
params:  
url: "[Vue.js • TodoMVC](https://elastic.github.io/synthetics-demo/)"  
schedule: "@every 3m"  
screenshots: "on"  
source:  
zip\_url:  
folder: synthetics-tests  
url: "[https://github.com/elastic/synthetics-demo/archive/refs/heads/main.zip](https://github.com/elastic/synthetics-demo/archive/refs/heads/main.zip)"  
tags: todos-app  
type: browser  
logging.level: debug  
output.elasticsearch:  
hosts:
  - "[http://localhost:9200](http://localhost:9200)"  
processors:

- add\_observer\_metadata: ~  
setup.kibana:  
host: "[http://localhost:5601](http://localhost:5601)"  
setup.template.settings:  
index.codec: best\_compression  
index.number\_of\_shards: 1  
\</\>

When using 'type: browser' , It's not been visible in uptime/downtime in kibana.  
Please suggest what wrong in this process.

---

<div class="post-metadata">

### Author: ![Baishali](https://avatars.discourse-cdn.com/v4/letter/b/48db29/32.png) [@Baishali](https://discuss.elastic.co/u/Baishali)
#### Post date: [July 26, 2022, 11:57am UTC](https://discuss.elastic.co/t/synthetic-monitoring-in-7-12-version/310506/2 "2022-07-26T11:57:18Z")

</div>

//Code  
\</\>  
heartbeat.config.monitors:  
path: "${path.config}/monitors.d/\*.yml"  
reload.enabled: false  
reload.period: 5s  
heartbeat.monitors:

- enabled: false  
id: my-monitor  
name: "My Monitor"  
schedule: "@every 10s"  
type: http  
urls:

- enabled: false  
id: synthetic-inline-suites  
name: "Elastic website"  
schedule: "@every 1m"  
screenshots: "on"  
source:  
inline:  
script: "  
step("load homepage", async () =\> {  
\x20 await page.goto('([https://www.elastic.co/](https://www.elastic.co/))');  
});  
step("hover over products menu", async () =\> {  
\x20 await page.hover('css=[data-nav-item=products]');  
}); "  
type: browser  
urls:

- enabled: true  
id: todos  
name: Todos  
params:  
url: "[Vue.js • TodoMVC](https://elastic.github.io/synthetics-demo/)"  
schedule: "@every 3m"  
screenshots: "on"  
source:  
zip\_url:  
folder: synthetics-tests  
url: "[https://github.com/elastic/synthetics-demo/archive/refs/heads/main.zip](https://github.com/elastic/synthetics-demo/archive/refs/heads/main.zip)"  
tags: todos-app  
type: browser

logging.level: debug  
output.elasticsearch:  
hosts:  
"[[http://localhost:9200](http://localhost:9200)]"

- 
  - processors:  
add\_observer\_metadata: ~  
setup.kibana:  
host: "[http://localhost:5601](http://localhost:5601/)"  
setup.template.settings:  
index.codec: best\_compression  
index.number\_of\_shards: 1

\</\>

---

<div class="post-metadata">

### Author: ![Baishali](https://avatars.discourse-cdn.com/v4/letter/b/48db29/32.png) [@Baishali](https://discuss.elastic.co/u/Baishali)
#### Post date: [July 28, 2022, 7:33am UTC](https://discuss.elastic.co/t/synthetic-monitoring-in-7-12-version/310506/3 "2022-07-28T07:33:54Z")

</div>

Any words!! Any replies??

---

<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: [August 25, 2022, 7:34am UTC](https://discuss.elastic.co/t/synthetic-monitoring-in-7-12-version/310506/4 "2022-08-25T07:34:35Z")

</div>

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