Hi all. Please help me get OpenSearch running!
I installed latest using yum, and changed 9200 port to 9201, to allow nginx. Otherwise, it’s basically out-of-the-box.
Both OpenSearch and Dashboards start. But Dashboards can’t connect to OpenSearch. I don’t know what other configuration is needed.
Any help would be greatly appreciated!
This is the Dashboard log:
Oct 04 19:15:52 myserver opensearch-dashboards[110119]: {"type":"log","@timestamp":"2023-10-04T19:15:52Z","tags":["warning","savedobjects-service"],"pid":110119,"message":"Unable to connect to OpenSearch. Error: Given the configuration, the ConnectionPool was not able to find a usable Connection for this request."}
Oct 04 19:37:28 myserver opensearch-dashboards[115045]: {"type":"log","@timestamp":"2023-10-04T19:37:28Z","tags":["info","plugins-service"],"pid":115045,"message":"Plugin \"dataSourceManagement\" has been disabled since the following direct or transitive dependencies are missing or disabled: [dataSource]"}
Oct 04 19:37:28 myserver opensearch-dashboards[115045]: {"type":"log","@timestamp":"2023-10-04T19:37:28Z","tags":["info","plugins-service"],"pid":115045,"message":"Plugin \"dataSource\" is disabled."}
Oct 04 19:37:28 myserver opensearch-dashboards[115045]: {"type":"log","@timestamp":"2023-10-04T19:37:28Z","tags":["info","plugins-service"],"pid":115045,"message":"Plugin \"visTypeXy\" is disabled."}
Oct 04 19:37:28 myserver opensearch-dashboards[115045]: {"type":"log","@timestamp":"2023-10-04T19:37:28Z","tags":["warning","config","deprecation"],"pid":115045,"message":"\"opensearch.requestHeadersWhitelist\" is deprecated and has been replaced by \"opensearch.requestHeadersAllowlist\""}
Oct 04 19:37:28 myserver opensearch-dashboards[115045]: {"type":"log","@timestamp":"2023-10-04T19:37:28Z","tags":["info","plugins-system"],"pid":115045,"message":"Setting up [51] plugins: [usageCollection,opensearchDashboardsUsageCollection,opensearchDashboardsLegacy,mapsLegacy,share,opensearchUiShared,legacyExport,embeddable,expressions,data,securityAnalyticsDashboards,home,apmOss,savedObjects,searchRelevanceDashboards,reportsDashboards,dashboard,mlCommonsDashboards,visualizations,visTypeVega,visTypeTimeline,visTypeTable,visTypeMarkdown,visBuilder,visAugmenter,anomalyDetectionDashboards,alertingDashboards,tileMap,regionMap,customImportMapDashboards,inputControlVis,ganttChartDashboards,visualize,queryWorkbenchDashboards,indexManagementDashboards,notificationsDashboards,management,indexPatternManagement,advancedSettings,console,dataExplorer,charts,visTypeVislib,visTypeTimeseries,visTypeTagcloud,visTypeMetric,observabilityDashboards,discover,savedObjectsManagement,securityDashboards,bfetch]"}
Oct 04 19:37:29 myserver opensearch-dashboards[115045]: {"type":"log","@timestamp":"2023-10-04T19:37:29Z","tags":["info","savedobjects-service"],"pid":115045,"message":"Waiting until all OpenSearch nodes are compatible with OpenSearch Dashboards before starting saved objects migrations..."}
Oct 04 19:37:29 myserver opensearch-dashboards[115045]: {"type":"log","@timestamp":"2023-10-04T19:37:29Z","tags":["error","opensearch","data"],"pid":115045,"message":"[ConnectionError]: write EPROTO 140466277648256:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:332:\n"}
Oct 04 19:37:29 myserver opensearch-dashboards[115045]: {"type":"log","@timestamp":"2023-10-04T19:37:29Z","tags":["error","savedobjects-service"],"pid":115045,"message":"Unable to retrieve version information from OpenSearch nodes."}
Oct 04 19:37:31 myserver opensearch-dashboards[115045]: {"type":"log","@timestamp":"2023-10-04T19:37:31Z","tags":["error","opensearch","data"],"pid":115045,"message":"[ConnectionError]: write EPROTO 140466277648256:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:332:\n"}
Oct 04 19:37:34 myserver opensearch-dashboards[115045]: {"type":"log","@timestamp":"2023-10-04T19:37:34Z","tags":["error","opensearch","data"],"pid":115045,"message":"[ConnectionError]: write EPROTO 140466277648256:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:332:\n"}
Oct 04 19:37:36 myserver opensearch-dashboards[115045]: {"type":"log","@timestamp":"2023-10-04T19:37:36Z","tags":["error","opensearch","data"],"pid":115045,"message":"[ConnectionError]: write EPROTO 140466277648256:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:332:\n"}
This is the opensearch.yml:
cluster.name: skynet-elk
path.data: /ds1/opensearch
path.logs: /var/log/opensearch
http.port: 9201
plugins.security.ssl.transport.pemcert_filepath: esnode.pem
plugins.security.ssl.transport.pemkey_filepath: esnode-key.pem
plugins.security.ssl.transport.pemtrustedcas_filepath: root-ca.pem
plugins.security.ssl.transport.enforce_hostname_verification: false
plugins.security.ssl.http.enabled: true
plugins.security.ssl.http.pemcert_filepath: esnode.pem
plugins.security.ssl.http.pemkey_filepath: esnode-key.pem
plugins.security.ssl.http.pemtrustedcas_filepath: root-ca.pem
plugins.security.allow_unsafe_democertificates: true
plugins.security.allow_default_init_securityindex: true
plugins.security.authcz.admin_dn:
- CN=kirk,OU=client,O=client,L=test, C=de
plugins.security.audit.type: internal_opensearch
plugins.security.enable_snapshot_restore_privilege: true
plugins.security.check_snapshot_restore_write_privileges: true
plugins.security.restapi.roles_enabled: ["all_access", "security_rest_api_access"]
plugins.security.system_indices.enabled: true
plugins.security.system_indices.indices: [".plugins-ml-config", ".plugins-ml-connector", ".plugins-ml-model-group", ".plugins-ml-model", ".plugins-ml-task", ".plugins-ml-conversation-meta", ".plugins-ml-conversation-interactions", ".opendistro-alerting-config", ".opendistro-alerting-alert*", ".opendistro-anomaly-results*", ".opendistro-anomaly-detector*", ".opendistro-anomaly-checkpoints", ".opendistro-anomaly-detection-state", ".opendistro-reports-*", ".opensearch-notifications-*", ".opensearch-notebooks", ".opensearch-observability", ".ql-datasources", ".opendistro-asynchronous-search-response*", ".replication-metadata-store", ".opensearch-knn-models", ".geospatial-ip2geo-data*"]
node.max_local_storage_nodes: 3
And this is the opensearch-dashboards.yml:
---
opensearch.hosts: [https://localhost:9200]
opensearch.ssl.verificationMode: none
opensearch.username: kibanaserver
opensearch.password: kibanaserver
opensearch.requestHeadersWhitelist: [authorization, securitytenant]
opensearch_security.multitenancy.enabled: true
opensearch_security.multitenancy.tenants.preferred: [Private, Global]
opensearch_security.readonly_mode.roles: [kibana_read_only]
opensearch_security.cookie.secure: false
THANK YOU!!!