# Watcher on node stats

**URL:** <https://discuss.elastic.co/t/watcher-on-node-stats/166517>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [January 31, 2019, 9:57am UTC](https://discuss.elastic.co/t/watcher-on-node-stats/166517 "2019-01-31T09:57:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JamesNotJamez](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jamesnotjamez/32/45736_2.png) [@JamesNotJamez](https://discuss.elastic.co/u/JamesNotJamez)\
**Post date:** [January 31, 2019, 9:57am UTC](https://discuss.elastic.co/t/watcher-on-node-stats/166517/1 "2019-01-31T09:57:40Z")

</div>

Not sure if this is an ECE or just general Elasticsearch query, but I'm trying to set up watchers on node stats e.g. check JVM heap not using over 80%.

Is there a way to do this using the search input. I know it would be possible with a Http input but then I have to worry about authenticating to the cluster which isn't ideal.

\*additional query  
If I use the http request, like below, the payload has a node ID in it (see below)

```auto
"payload": {
  "nodes": {
    "s59clI5ORciYdbW16QOPfg": {
       "timestamp": 1548936254192,
        ....

```

Is there a way of

- creating a watcher that would loop through all of the nodes and alert on values in the node if a condition met
- If not "moving into" the node without having to specify the key in the watcher

Thanks

---

<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:** [February 14, 2019, 9:57am UTC](https://discuss.elastic.co/t/watcher-on-node-stats/166517/2 "2019-02-14T09:57:41Z")

</div>

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