Accessing OpenSearch
- URL:
https://localhost:9200 - Administratoroplysninger: gemt i
/root/.cloudzy-creds - Som standard binder OpenSearch sig til
localhost(127.0.0.1) og er IKKE tilgængelig via serverens IP. - Eksempeltest med curl:
curl -X GET https://localhost:9200 -u 'admin:<password>' --insecure
Adgang til OpenSearch Dashboards (UI)
- URL:
http://<SERVER_IP>:5601 - Login-oplysninger: gemt i
/root/.cloudzy-creds - Dashboards er konfigureret til at lytte på
0.0.0.0til fjernadgang.
Vigtige filer og mapper
- 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)som standard og kan ikke tilgås via server-IP'en, medmindre det er eksplicit konfigureret. - SSH port forwarding kan bruges til sikkert at tilgå OpenSearch eksternt uden at eksponere port
9200. - Eksempel på SSH port forwarding:
ssh -L 9200:localhost:9200 root@<SERVER_IP> - OpenSearch Dashboards er konfigureret til at lytte på
0.0.0.0og er tilgængelig eksternt på port5601. - Dashboards-loginoplysninger er defineret i
/etc/opensearch-dashboards/opensearch_dashboards.yml.