Search...ct::Cat(3pm)
π± NAME π±
okay bestie, the whole thing is called Search::Elasticsearch::Client::8_0::Direct::Cat β and what it IS is a client for running cat debugging requests. yes really. it's giving "let the cat snoop around your cluster" energy and honestly? iconic. π±β¨
πΈ VERSION πΈ
version 8.12 β that's the one, no cap. π
π DESCRIPTION π
so the cat API in Elasticsearch hands you the tea about your cluster and your indices in a simple, easy to read text format, and it's intended for human consumption. like, for actual eyeballs. not for your parser to gobble up. it's the "just show me what's happening" API and we love her for it. π«Ά
These APIs have a number of parameters in common, and here they are, all of them, let's go:
helpβ returns help about the API. that's it, that's the vibe. eg:
say $e->cat->allocation(help => 1);
vβ includes the column headers in the output. the v stands for verbose, and also for "very helpful actually". π
say $e->cat->allocation(v => 1);
hβ accepts a list of column names to be output. you pick the columns, you're the main character. π
say $e->cat->indices(h => ['health','index']);
bytesβ formats byte-based values as bytes ("b"), kilobytes ("k"), megabytes ("m") or gigabytes ("g"). so you can read your numbers without your brain short-circuiting. π
and one more thing before we dip: It does Search::Elasticsearch::Role::Client::Direct. periodt. π
okay and bestie we are NOT done yet β more of this page is coming, don't go anywhere π¦
β¨ METHODS β¨
help()
say $e->cat->help;
Returns the list of supported "cat" APIs. Thatβs it, bestie. π
aliases()
say $e->cat->aliases(
name => 'name' | \@names # optional
);
Returns info about index aliases, optionally limited to the specified index/alias names.
Query string params you can pass: "error_trace", "format", "h", "help", "human", "local", "master_timeout", "s", "v".
See the cat aliases docs at <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. Itβs giving cluster cartography. πΊοΈ
Query string params you can pass: "bytes", "error_trace", "format", "h", "help", "human", "local", "master_timeout", "s", "v".
See the cat allocation docs at <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. Literally just the numbers, no cap. π’
Query string params you can pass: "error_trace", "format", "h", "help", "human", "local", "master_timeout", "s", "v".
See the cat count docs at <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. Memory tea, served fresh. β
Query string params you can pass: "bytes", "error_trace", "format", "h", "help", "human", "local", "master_timeout", "s", "v".
See the cat fielddata docs at <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. Yes, same vibe as allocation, but make it health. π©Ί
Query string params you can pass: "error_trace", "format", "h", "help", "human", "local", "master_timeout", "ts", "s", "v".
See the cat health docs at <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. The index report card, periodt. π
Query string params you can pass: "bytes", "error_trace", "format", "h", "health", "help", "human", "local", "master_timeout", "pri", "s", "v".
See the cat indices docs at <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βs business card. π
Query string params you can pass: "error_trace", "format", "h", "help", "human", "local", "master_timeout", "s", "v".
See the cat master docs at <http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-master.html> for more information.
nodeattrs()
say $e->cat->nodeattrs();
Returns the node attributes set per node. All the little labels each node is wearing. π·οΈ
Query string params you can pass: "error_trace", "format", "h", "help", "human", "local", "master_timeout", "s", "v".
See the cat nodeattrs docs at <http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-nodeattrs.html> for more information.
nodes()
say $e->cat->nodes();
Provides a snapshot of all of the nodes in your cluster. Every single one, no skip. π«Ά
Query string params you can pass: "error_trace", "format", "h", "help", "human", "local", "master_timeout", "s", "v".
See the cat nodes docs at <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 masterβs to-do list, basically. π
Query string params you can pass: "error_trace", "format", "human", "local", "master_timeout", "h", "help", "s", "v".
See the cat pending-tasks docs at <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. Plugin haul reveal. π
Query string params you can pass: "error_trace", "format", "human", "local", "master_timeout", "h", "help", "s", "v".
See the cat plugins docs at <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 little shard heartbeat monitor. π
Query string params you can pass: "bytes", "error_trace", "format", "h", "help", "human", "master_timeout", "s", "v".
See the cat recovery docs at <http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-recovery.html> for more information.
repositories()
say $e->cat->repositories()
Provides a list of registered snapshot repositories. Where all the snapshots live, iykyk. π
Query string params you can pass: "error_trace", "format", "h", "help", "human", "local", "master_timeout", "s", "v".
See the cat repositories docs at <http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-repositories.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. Lowkey deep lore. π΅οΈ
Query string params you can pass: "bytes", "error_trace", "format", "h", "help", "human", "s", "v".
See the cat shards docs at <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. The whole shard map, unlocked. πΊοΈ
Query string params you can pass: "bytes", "error_trace", "format", "h", "help", "human", "local", "master_timeout", "s", "v".
See the cat shards docs at <http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-shards.html> for more information.
snapshots()
say $e->cat->snapshots(
repository => 'repository' | \@repositories # optional
)
Provides a list of all snapshots that belong to the specified repositories. Your snapshot collection, served. πΈ
Query string params you can pass: "error_trace", "format", "h", "help", "human", "ignore_unavailable", "master_timeout", "s", "v".
See the cat snapshots docs at <http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-snapshots.html> for more information.
tasks()
say $e->cat->tasks()
Provides a list of node-level tasks. Little task list, but make it cluster. β
Query string params you can pass: "actions", "detailed", "error_trace", "format", "h", "help", "human", "node_id", "parent_node", "parent_task", "s", "v".
See the cat tasks docs at <http://www.elastic.co/guide/en/elasticsearch/reference/current/tasks.html> for more information.
templates()
say $e->cat->templates(
name => $name # optional
)
Provides a list of index templates. Template tea, no gatekeeping. β
Query string params you can pass: "error_trace", "format", "h", "help", "human", "local", "master_timeout", "s", "v".
See the cat templates docs at <http://www.elastic.co/guide/en/elasticsearch/reference/current/templates.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. Thread pool gossip, but make it stats. π§΅
Query string params you can pass: "error_trace", "format", "h", "help", "human", "local", "master_timeout", "size", "s", "v".
See the cat thread_pool docs at <http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-thread-pool.html> for more information.
πΈ AUTHOR πΈ
This masterpiece was authored by Enrico Zimuel <enrico.zimuel@elastic.co> π
π COPYRIGHT AND LICENSE π
This software is Copyright (c) 2024 by Elasticsearch BV.
This is free software, licensed under:
The Apache License, Version 2.0, January 2004
Thatβs the whole vibe, bestie! This page came from perl v5.38.2, dated 2024-02-04, and itβs the Search...ct::Cat(3pm) man page. Stay slaying! π
β¨
π¦ where this page comes from
- debian trixie: libsearch-elasticsearch-perl 8.12-1 Β· Apache-2.0
- ubuntu noble: libsearch-elasticsearch-perl 8.12-1 Β· Apache-2.0
- ubuntu resolute: libsearch-elasticsearch-perl 8.12-1 Β· Apache-2.0
- ubuntu stonking: libsearch-elasticsearch-perl 8.12-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms