Tool for extracting information about ElasticSearch indices, such as storage-size per index.
- PHP 7.4+
- Composer
- Git
- Clone this repository:
git clone https://github.com/middlebury/elasticsearch_index_stats.git
- Change to the new directory:
cd elasticsearch_index_stats
- Install dependencies:
composer install
The ./bin/eis
command is the entry point for this package.
Subcommands:
es:index-sizes
- Show storage sizes of indexes. This utilizes ElasticSearch's Index Stats API.
./bin/eis es:index-sizes --es-host=myhost.domain.edu --user=username --password --index-format='.logstash-web-drupal-*-{YYYY.MM}' --date-rows
./bin/eis es:index-sizes --es-host=myhost.domain.edu --user=username --password --index-format='.logstash-web-drupal-fastly-{YYYY-MM-DD}' --date-rows