mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-17 04:29:14 +02:00
| .. | ||
| _GET | ||
| elasticsearch.plugin.zsh | ||
| README.md | ||
Elasticsearch
This plugin makes easy to use Elasticsearch API and it also offering autocomplete for common APIs.
There are GET,
HEAD,
DELETE,
PUT and
POST commands.
Examples usage:
GET _cluster/healthGET _nodes/statsGET _stats/fielddata?fields=*GET _nodes/stats/indices/fielddata?fields=*GET _catDELETE twitter
You should install json_reformat to format json output.
Instructions
If you'd prefer to specify an explicit Elasticsearch node client to query, you can set variable like so in .zshrc:
export CLIENT_ELK_NODE=client_node
Default is localhost.
Aliases
alias ech='GET _cluster/health': Cluster status healthalias ecs='GET _cluster/state': Allows to get a comprehensive state information of the whole clusteralias ens='GET _nodes/stats': Allows to retrieve all of the cluster nodes statisticsalias esf='GET _stats/fielddata': Field data memory usage on index level
Author
Fedele Mantuano (Twitter: @fedelemantuano)