App-ElasticSearch-Utilities
view release on metacpan or search on metacpan
scripts/es-storage-overview.pl view on Meta::CPAN
use App::ElasticSearch::Utilities qw(es_request es_index_strip_date es_index_bases);
use CHI;
use CLI::Helpers qw(:output);
use Getopt::Long::Descriptive;
use Pod::Usage;
#------------------------------------------------------------------------#
# Argument Collection
my ($opt,$usage) = describe_options('%c %o',
['sort=s', "sort by name or size, default: name",
{ default => 'name', callbacks => { 'must be name or size' => sub { $_[0] =~ /^name|size$/ } } }
],
['asc', "Sort ascending (default by name)"],
['desc', "Sort descending (default by size)"],
['limit=i', "Limit to showing only this many, ie top N", { default => 0 }],
['raw', "Display numeric data without rollups"],
[],
['clear-cache', "Clear the _cat/indices cache"],
[],
['help|h', "Display this help", { shortcircuit => 1 }],
['manual|m',"Display the full manual", { shortcircuit => 1 }],
( run in 0.336 second using v1.01-cache-2.11-cpan-8d75d55dd25 )