From 5458c57cc9c3aaead33887609b60519b95c80390 Mon Sep 17 00:00:00 2001 From: Doug Burks Date: Mon, 12 Oct 2020 16:32:11 -0400 Subject: [PATCH] Update so-elasticsearch-pipeline-stats --- salt/common/tools/sbin/so-elasticsearch-pipeline-stats | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/salt/common/tools/sbin/so-elasticsearch-pipeline-stats b/salt/common/tools/sbin/so-elasticsearch-pipeline-stats index ecb1512c0..e1a0bfd3d 100755 --- a/salt/common/tools/sbin/so-elasticsearch-pipeline-stats +++ b/salt/common/tools/sbin/so-elasticsearch-pipeline-stats @@ -19,7 +19,15 @@ . /usr/sbin/so-common if [ "$1" == "" ]; then + {% if grains['role'] in ['so-node','so-heavynode'] %} + curl -s -k https://{{ NODEIP }}:9200/_nodes/stats | jq .nodes | jq ".[] | .ingest.pipelines" + {% else %} curl -s {{ NODEIP }}:9200/_nodes/stats | jq .nodes | jq ".[] | .ingest.pipelines" + {% endif %} else + {% if grains['role'] in ['so-node','so-heavynode'] %} + curl -s -k https://{{ NODEIP }}:9200/_nodes/stats | jq .nodes | jq ".[] | .ingest.pipelines.\"$1\"" + {% else %} curl -s {{ NODEIP }}:9200/_nodes/stats | jq .nodes | jq ".[] | .ingest.pipelines.\"$1\"" + {% endif %} fi