From 67e352bdbbf8633993ccdace00d39e141b75373d Mon Sep 17 00:00:00 2001 From: kal3v Date: Thu, 7 Jan 2016 09:31:40 +0100 Subject: [PATCH] Adding aliases for Elastic Search --- plugins/elk/elk.plugin.zsh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 plugins/elk/elk.plugin.zsh diff --git a/plugins/elk/elk.plugin.zsh b/plugins/elk/elk.plugin.zsh new file mode 100644 index 000000000..67ef5f1b0 --- /dev/null +++ b/plugins/elk/elk.plugin.zsh @@ -0,0 +1,16 @@ +# Aliases for the ELK stack + +# General +alias stelk="sudo systemctl status elasticsearch.service; sudo systemctl status logstash; sudo systemctl status kibana.service;" +# open FDs +alias stelsysfs="sysctl fs.file-nr" + +# Elastic search cluster health +alias stelh="curl 'localhost:9200/_cluster/health?pretty'" + +# Elastic search cluser nodes info +alias stelno="curl 'http://localhost:9200/_cat/nodes?v'" +alias stelproc="curl 'http://localhost:9200/_nodes/_all/process?pretty'" +alias steljvm="curl 'http://localhost:9200/_nodes/_all/jvm?pretty'" +alias stelsh="curl 'http://localhost:9200/_cat/shards" +