WARNING: Version 5.1 of the Elastic Stack has passed its EOL date.
This documentation is no longer being maintained and may be removed. If you are running this version, we strongly advise you to upgrade. For the latest information, see the current release documentation.
Getting Started with Watcher
editGetting Started with Watcher
editThis getting started guide walks you through setting up alerting and creating your first watches, and introduces the building blocks you’ll use to create custom watches.
To get started with alerting and notification:
- Install X-Pack on each node in your cluster.
-
Start Elasticsearch.
bin/elasticsearch
-
Verify that Watcher is enabled, by calling the Watcher Stats API:
GET _xpack/watcher/stats
You haven’t set up any watches yet, so the
watch_count
is zero and theexecution_thread_pool
queue is empty:{ "watcher_state" : "started", "watch_count" : 0, "execution_thread_pool" : { "queue_size" : 0, "max_size" : 0 }, "manually_stopped" : false }
Ready to start building watches? Choose one of the following scenarios: