WARNING: Version 6.0 of Elasticsearch 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.
By default, the monitoring agent collects data from all Elasticsearch indices.
To collect data from particular indices, configure the
xpack.monitoring.collection.indices
setting in elasticsearch.yml
.
You can specify multiple indices as a comma-separated list or
use an index pattern to match multiple indices:
xpack.monitoring.collection.indices: logstash-*, index1, test2
You can prepend +
or -
to explicitly include or exclude index
names or patterns. For example, to include all indices that
start with test
except test3
, you could specify +test*,-test3
.