Search...ct::Cat(3pm)
π± NAME
Search::Elasticsearch::Client::1_0::Direct::Cat β a client for running cat debugging requests, bestie π
(and yeah, it lives in the User Contributed Perl Documentation section, it's a 3pm page, iykyk)
β¨ VERSION β¨
version 6.81 β she's grown up, she's thriving π
πΈ DESCRIPTION πΈ
okay so the "cat" API in Elasticsearch is literally the aesthetic one: it hands you info about your cluster and your indices in a simple, easy-to-read text format that's made for human consumption. Not machines. Humans. Us. π
And these APIs are allllll sharing some parameters in common, so lemme put you on:
"help"β returns help about the API, eg:
say $e->cat->allocation(help => 1);
"v"β includes the column headers in the output:
say $e->cat->allocation(v => 1);
"h"β accepts a list of column names to be output, eg:
say $e->cat->indices(h => ['health','index']);
"bytes"β formats byte-based values as bytes ("b"), kilobytes ("k"), megabytes ("m") or gigabytes ("g")
Also she does Search::Elasticsearch::Role::Client::Direct, for the record π«Ά
π METHODS π
π¦ help()
say $e->cat->help;
Returns the list of supported "cat" APIs. The whole menu, no cap π
π¦ aliases()
say $e->cat->aliases(
name => 'name' | \@names # optional
);
Returns information about index aliases, optionally limited to the specified index/alias names.
Query string parameters:
"h""help""local""master_timeout""v"
See the cat aliases docs: http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-aliases.html for more information.
π¦ allocation()
say $e->cat->allocation(
node_id => 'node' | \@nodes # optional
);
Provides a snapshot of how shards have located around the cluster and the state of disk usage. Lowkey a whole vibe report for your disks β¨
Query string parameters:
"bytes""h""help""local""master_timeout""v"
See the cat allocation docs: http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-allocation.html for more information.
π¦ count()
say $e->cat->count(
index => 'index' | \@indices # optional
);
Provides quick access to the document count of the entire cluster, or individual indices. Counting, but make it instant β
Query string parameters:
"h""help""local""master_timeout""v"
See the cat count docs: http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-count.html for more information.
π¦ fielddata()
say $e->cat->fielddata(
fields => 'field' | \@fields # optional
);
Shows the amount of memory used by each of the specified fields (or all fields) loaded into fielddata. Watch that memory bestie, fr fr π
Query string parameters:
"bytes""h""help""local""master_timeout""v"
See the cat fielddata docs: http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-fielddata.html for more information.
π¦ health()
say $e->cat->health();
Provides a snapshot of how shards have located around the cluster and the state of disk usage.
Query string parameters:
"bytes""h""help""local""master_timeout""ts""v"
See the cat health docs: http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-health.html for more information.
π¦ indices()
say $e->cat->indices(
index => 'index' | \@indices # optional
);
Provides a summary of index size and health for the whole cluster or individual indices.
Query string parameters:
"bytes""h""help""local""master_timeout""pri""v"
See the cat indices docs: http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-indices.html for more information.
π¦ master()
say $e->cat->master();
Displays the masterβs node ID, bound IP address, and node name. The main character, literally π
Query string parameters:
"h""help""local""master_timeout""v"
See the cat master docs: http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-master.html for more information.
π¦ nodes()
say $e->cat->nodes();
Provides a snapshot of all of the nodes in your cluster.
Query string parameters:
"h""help""local""master_timeout""v"
See the cat nodes docs: http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-nodes.html for more information.
π¦ pending_tasks()
say $e->cat->pending_tasks();
Returns any cluster-level tasks which are queued on the master. The queue, bestie. We've all been there π
Query string parameters:
"local""master_timeout""h""help""v"
See the cat pending-tasks docs: http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-pending-tasks.html for more information.
π¦ plugins()
say $e->cat->plugins();
Returns information about plugins installed on each node.
Query string parameters:
"local""master_timeout""h""help""v"
See the cat plugins docs: http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-plugins.html for more information.
π¦ recovery()
say $e->cat->recovery(
index => 'index' | \@indices # optional
);
Provides a view of shard replication. It will show information anytime data from at least one shard is copying to a different node. It can also show up on cluster restarts. If your recovery process seems stuck, try it to see if thereβs any movement using recovery(). Like a vibe check but for shards π§
Query string parameters:
"bytes""h""help""master_timeout""v"
See the cat recovery docs: http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-recovery.html for more information.
π¦ segments()
say $e->cat->segments(
index => 'index' | \@indices # optional
);
Provides low level information about the segments in the shards of an index. Down in the weeds, lowkey π₯
Query string parameters:
"h""help""v"
See the cat shards docs: http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-segments.html for more information.
π¦ shards()
say $e->cat->shards(
index => 'index' | \@indices # optional
);
Provides a detailed view of what nodes contain which shards, the state and size of each shard.
Query string parameters:
"h""help""local""master_timeout""v"
See the cat shards docs: http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-shards.html for more information.
π¦ thread_pool()
say $e->cat->thread_pool(
index => 'index' | \@indices # optional
);
Shows cluster wide thread pool statistics per node. By default the "active", "queue" and "rejected" statistics are returned for the "bulk", "index" and "search" thread pools. Rejected?? not the rejection arc π
Query string parameters:
"full_id""h""help""local""master_timeout""v"
See the cat thread_pool docs: http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-thread-pool.html for more information.
π AUTHOR π
Enrico Zimuel <enrico.zimuel@elastic.co> β we stan π
π COPYRIGHT AND LICENSE π
This software is Copyright (c) 2020 by Elasticsearch BV.
This is free software, licensed under:
The Apache License, Version 2.0, January 2004
and that's a wrap, bestie π«Ά this whole page was generated by perl v5.36.0, dated 2022-08-28, and it's the Search::Elasticsearch::Client::1_0::Direct::Cat page from the User Contributed Perl Documentation. iconic, no notes, periodt π
β¨
π¦ where this page comes from
- ubuntu noble: libsearch-elasticsearch-client-1-0-perl 6.81-2 Β· Apache-2.0
- ubuntu resolute: libsearch-elasticsearch-client-1-0-perl 6.81-2 Β· Apache-2.0
- ubuntu stonking: libsearch-elasticsearch-client-1-0-perl 6.81-2 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms