Skip to content
This repository has been archived by the owner on Oct 19, 2020. It is now read-only.

user authentication for cluster health #26

Open
nanjum88 opened this issue Aug 2, 2019 · 1 comment
Open

user authentication for cluster health #26

nanjum88 opened this issue Aug 2, 2019 · 1 comment

Comments

@nanjum88
Copy link

nanjum88 commented Aug 2, 2019

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
Copy link
Author

nanjum88 commented Aug 2, 2019

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:password@elasticsearchdev.domain.com: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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant