- Watcher Reference for 2.x and 1.x:
- Introduction
- Getting Started
- Customizing Watches
- How Watcher Works
- Installing Watcher
- Administering Watcher
- Configuring Watcher to Send Email
- Configuring Watcher to Send Messages to HipChat
- Configuring Watcher to Send Messages to Slack
- Integrating Watcher with Shield
- Integrating Watcher with Logstash
- Configuring the Default Throttle Period
- Configuring the Default HTTP Timeouts
- Configuring the Default Internal Operations Timeouts
- Getting Watcher Statistics
- Monitoring Watch Execution
- Managing Watches
- Example Watches
- Reference
- Managing Your License
- Troubleshooting
- Release Notes
Getting Started
editGetting Started
editThis getting started guide walks you through installing Watcher and creating your first watches, and introduces the building blocks you’ll use to create custom watches. You can install Watcher on nodes running Elasticsearch 2.0.0.
To install and run Watcher:
-
Run
bin/plugin install
fromES_HOME
to install the License plugin:bin/plugin install license
You need to install the License and Watcher plugins on each node in your cluster.
-
Run
bin/plugin install
to install the Watcher plugin.bin/plugin install watcher
If you are using a DEB/RPM distribution of Elasticsearch, run the installation with superuser permissions. To perform an offline installation, download the Watcher binaries.
-
Start Elasticsearch.
bin/elasticsearch
-
To verify that Watcher is set up, call the Watcher
_stats
API:curl -XGET 'http://localhost:9200/_watcher/stats?pretty'
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: