# Easy way to monitor ElasticSearch

**URL:** https://discuss.elastic.co/t/easy-way-to-monitor-elasticsearch/324404
**Category:** Elasticsearch
**Tags:** elastic-stack-monitoring
**Created:** [February 1, 2023, 9:18am UTC](https://discuss.elastic.co/t/easy-way-to-monitor-elasticsearch/324404 "2023-02-01T09:18:21Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![frankmehlhop.com](https://avatars.discourse-cdn.com/v4/letter/f/97f17d/32.png) [@frankmehlhop.com](https://discuss.elastic.co/u/frankmehlhop.com)
#### Post date: [February 1, 2023, 9:18am UTC](https://discuss.elastic.co/t/easy-way-to-monitor-elasticsearch/324404/1 "2023-02-01T09:18:21Z")

</div>

I want a **easy way to monitor Elasticsearch**.  
What I found is Metricbeat. But it seems to be very extensive.  
For my purpose it is enough to **see green, yellow, red** and it would be **nice to have** if the **administrator gets a message** when the status changes to yellow or red.  
What is a easy way to monitor Elasticsearch?

---

<div class="post-metadata">

### Author: ![Wave](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wave/32/117242_2.png) [@Wave](https://discuss.elastic.co/u/Wave)
#### Post date: [February 19, 2023, 7:49pm UTC](https://discuss.elastic.co/t/easy-way-to-monitor-elasticsearch/324404/2 "2023-02-19T19:49:05Z")

</div>

You can use [watcher](https://www.elastic.co/guide/en/elasticsearch/reference/8.6/watch-cluster-status.html) to do something like that. I'd still recommend turning on Stack Monitoring for a cluster though, which can be done through metricbeat like you've found, or "self monitoring" can be turned on through the kibana user interface.

---

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [February 19, 2023, 8:04pm UTC](https://discuss.elastic.co/t/easy-way-to-monitor-elasticsearch/324404/3 "2023-02-19T20:04:45Z")

</div>

There is the `_health` endpoint

> **[Cluster health API | Elasticsearch Guide \[8.6\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-health.html#cluster-health-api-example)**

---

<div class="post-metadata">

### Author: ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)
#### Post date: [February 20, 2023, 1:08am UTC](https://discuss.elastic.co/t/easy-way-to-monitor-elasticsearch/324404/4 "2023-02-20T01:08:15Z")

</div>

The easiest way is using the `_cluster/health` endpoint, it will return a json response where the status will be in a key named `status`.

You may write a little script in bash or python for example that would query this endpoint and trigger something depending on the status.

I had something like this a couple of time ago.

---

<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 20, 2023, 1:09am UTC](https://discuss.elastic.co/t/easy-way-to-monitor-elasticsearch/324404/5 "2023-03-20T01:09:12Z")

</div>

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