elasticsplunk icon indicating copy to clipboard operation
elasticsplunk copied to clipboard

user authentication for cluster health

Open nanjum88 opened this issue 5 years ago • 1 comments

hi @brunotm @1vish99

I am trying to get the basic cluster health status using the app

Curl works -

curl -u usernam:password -XGET "https://elasticsearchdev.domain.com:443/_cluster/health"?pretty

{ "cluster_name" : "newdev", "status" : "green", "timed_out" : false, "number_of_nodes" : 2, "number_of_data_nodes" : 2, "active_primary_shards" : 1608, "active_shards" : 3216, "relocating_shards" : 0, "initializing_shards" : 0, "unassigned_shards" : 0, "delayed_unassigned_shards" : 0, "number_of_pending_tasks" : 0, "number_of_in_flight_fetch" : 0, "task_max_waiting_in_queue_millis" : 0, "active_shards_percent_as_number" : 10.0 }

How do I make this work using the app ? the app is installed on the same splunk server where I ran CURL to see successful results.

Thanks

nanjum88 avatar Aug 02 '19 02:08 nanjum88

I was able to get through it .

but seeing the following error when trying to get cluster-state and other cluster related commands to work

|ess eaddr="https://usernam:[email protected]:443" action="cluster-state"

External search command 'ess' returned error code 1. Script output = "error_message=TypeError at "/opt/splunk/etc/apps/elasticsplunk/bin/splunklib/searchcommands/internals.py", line 519 : 'NoneType' object is not iterable "

I am using Elastic 7.x . Most of the cluster level API are not working..

cluster-state cluster-stat etc.

https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-stats.html

nanjum88 avatar Aug 02 '19 02:08 nanjum88