How to access Kibana APIs

Hi Team,

In metricbeat.yml we have a setting,

Kibana Host

Scheme and port can be left out and will be set to the default (http and 5601)

In case you specify and additional path, the scheme is required: http://localhost:5601/path

IPv6 addresses should always be defined as: https://[2001:db8::1]:5601

host: "kibana-dp-dev.snm.syn.nesc.cmpn.net"
username: "username"
password: "password"
protocol: "https"

In my orgnization port 5601 is no accessible from intranet.
Kibana is running behind ngnix, https://kibana-dp-dev.snm.syn.nesc.cmpn.net.

When i run metribeat setup --dashboards in order to pull default dashboards on to Kibana, am getting below error.

Exiting: error connecting to Kibana: fail to get the Kibana version: HTTP GET request to https://kibana-dp-dev.snm.syn.nesc.cmpn.net:5601/api/status fails: fail to execute the HTTP GET request: Get https://kibana-dp-dev.snm.syn.nesc.cmpn.net:5601/api/status: dial tcp 10.129.594.201:5601: connect: connection refused. Response: .

in order to mitigate this problem i tried combination of urls like,

Direct HTTPs url:
https://username:password@kibana-dp-dev.snm.syn.nesc.cmpn.net/api/status

Invoking ngnix with user name and password:
http://username:password@kibana-dp-dev.snm.syn.nesc.cmpn.net:80/api/status

But both returns me below error,
{"statusCode":401,"error":"Unauthorized","message":"Unauthorized"}

is there a way to access Kibana APIs by dynamically passing username and password?
any help in correcting my configuration to pull metricbeat dashboard i smuch appreciated.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.