Connecting to Existing Index that has Username/Password Authentication

We have an index already running on a separate machine and want to connect to from our local machine or possibly another server. We have tested connecting to the index via Postman and after being prompted to type in the username and password we were able to see the data in the index. However, we want to do something similar in Kibana but don't know where to attempt to connect to that index since it is on a separate machine. On top of that, if we can do such a thing how can we pass the authentication to this external index so that we can keep it open to make visualizations in the kibana dashboard.

Thanks, Jason

Hi there, you should be able to configure the config/kibana.yml file in your Kibana directory to connect to your ES instance. The configuration will look like this:

# The URL of the Elasticsearch instance to use for all your queries.
elasticsearch.url: "http://localhost:9200"

# If your Elasticsearch is protected with basic authentication, these settings provide
# the username and password that the Kibana server uses to perform maintenance on the Kibana
# index at startup. Your Kibana users still need to authenticate with Elasticsearch, which
# is proxied through the Kibana server.
elasticsearch.username: "user"
elasticsearch.password: "pass"

Please see the docs on configuring Kibana for additional options.

Thanks,
CJ

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