OpenSearch

Open-source search & analytics platform for ingesting, searching, and visualizing data.

Accessing OpenSearch

  • URL: https://localhost:9200
  • Admin credentials: stored in /root/.cloudzy-creds
  • By default, OpenSearch binds to localhost (127.0.0.1) and is NOT accessible via the server’s IP.
  • Example test with curl: curl -X GET https://localhost:9200 -u 'admin:<password>' --insecure

Accessing OpenSearch Dashboards (UI)

  • URL: http://<SERVER_IP>:5601
  • Login credentials: stored in /root/.cloudzy-creds
  • Dashboards is configured to listen on 0.0.0.0 for remote access.

Important Files and Directories

  • Credentials: /root/.cloudzy-creds
  • OpenSearch configuration: /etc/opensearch/opensearch.yml
  • OpenSearch data: /var/lib/opensearch
  • OpenSearch logs: /var/log/opensearch
  • Dashboards configuration: /etc/opensearch-dashboards/opensearch_dashboards.yml
  • Dashboards logs: /var/log/opensearch-dashboards

Service Management

OpenSearch:

systemctl status opensearch
systemctl restart opensearch
journalctl -u opensearch -f

OpenSearch Dashboards:

systemctl status opensearch-dashboards
systemctl restart opensearch-dashboards
journalctl -u opensearch-dashboards -f

Notes

  • OpenSearch listens on localhost (127.0.0.1) by default and cannot be accessed via the server IP unless explicitly configured.
  • SSH port forwarding can be used to securely access OpenSearch remotely without exposing port 9200.
  • Example SSH port forwarding: ssh -L 9200:localhost:9200 root@<SERVER_IP>
  • OpenSearch Dashboards is configured to listen on 0.0.0.0 and is accessible remotely on port 5601.
  • Dashboards authentication credentials are defined in /etc/opensearch-dashboards/opensearch_dashboards.yml.

Application Details