Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Not able to login to opensearch Dashboard on Windows machine

I am using Filebeat-opensearch-Opensearch Dashboard very first time. And I am using it only on local Windows machine.

I am able to launch Filebeat,Opensearch[http://localhost:9200/] and Opensearch-dashboards[http://localhost:5601/app/login?]. But not able to login to Opensearch Dashboard.

When I enter credentials admin/admin, It says, "[error][plugins][securityDashboards] Failed authentication: Error: no handler found for uri [/_plugins/_security/authinfo] and method [GET]".

opensearch-dashboard.yml:

server.port: 5601
opensearch.hosts: [http://localhost:9200]
opensearch.ssl.verificationMode: none
opensearch.username: admin
opensearch.password: admin
opensearch.requestHeadersWhitelist: [authorization, securitytenant]

opensearch_security.multitenancy.enabled: false
opensearch_security.cookie.secure: false

opensearch.yml:

 plugins.security.disabled: true

Only 1 entry is there in opensearch.yml file.

Is there any solution?

like image 686
Anish Mittal Avatar asked Jan 30 '26 22:01

Anish Mittal


1 Answers

If you are fine with disable security here what I have done.

  1. Delete the OpenSearch-xxx/plugins/opensearch-security folder on all nodes.
  2. Delete all plugins.security.* configuration entries from opensearch.yml but keep plugins.security.disabled: true
  3. comment/remove all opensearch_security. entries from opensearch-dashboard.yml
  4. You might need to remove security plugin while running opensearch.bat file by running bin/opensearch-dashboards-plugin remove securityDashboards

follow these official docs for more info... https://opensearch.org/docs/1.1/dashboards/install/plugins#remove-plugins

https://opensearch.org/docs/1.1/security-plugin/configuration/disable/

Hope this will help :)

like image 57
Hp Sharma Avatar answered Feb 03 '26 10:02

Hp Sharma