forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: zhengxiu <zhengxiu@huawei.com> Co-committed-by: zhengxiu <zhengxiu@huawei.com>
43 lines
6.8 KiB
HTML
43 lines
6.8 KiB
HTML
<a name="EN-US_TOPIC_0000002021043217"></a><a name="EN-US_TOPIC_0000002021043217"></a>
|
|
|
|
<h1 class="topictitle1">How Do I Connect In-house Developed OpenSearch Dashboards to an OpenSearch Cluster in CSS?</h1>
|
|
<div id="body0000002021043217"><div class="section" id="EN-US_TOPIC_0000002021043217__section5307125464920"><h4 class="sectiontitle">Constraints</h4><p id="EN-US_TOPIC_0000002021043217__p111011578497">Only OpenSearch Dashboards images of the OSS version can be connected to OpenSearch clusters in CSS.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000002021043217__section1779411035010"><h4 class="sectiontitle">Procedure</h4><ol id="EN-US_TOPIC_0000002021043217__ol20533192815573"><li id="EN-US_TOPIC_0000002021043217__li2534142811579">Create an ECS.<ul id="EN-US_TOPIC_0000002021043217__ul95309321314"><li id="EN-US_TOPIC_0000002021043217__li8530932812">The ECS must be within the same VPC as the CSS cluster.</li><li id="EN-US_TOPIC_0000002021043217__li55301132616">Port 5601 must be allowed by the security group associated with the ECS.</li><li id="EN-US_TOPIC_0000002021043217__li253063217114">An EIP must be allocated to the ECS.</li></ul>
|
|
<p id="EN-US_TOPIC_0000002021043217__p87044544215">For details, see Elastic Cloud Server User Guide.</p>
|
|
</li><li id="EN-US_TOPIC_0000002021043217__li276773217411">Obtain the address for accessing the OpenSearch cluster of CSS.<ol type="a" id="EN-US_TOPIC_0000002021043217__en-us_topic_0000001975823337_ol15355114704317"><li id="EN-US_TOPIC_0000002021043217__en-us_topic_0000002338102386_li1515612820249"><span id="EN-US_TOPIC_0000002021043217__en-us_topic_0000002338102386_ph115718818245">Log in to the CSS management console.</span></li><li id="EN-US_TOPIC_0000002021043217__en-us_topic_0000002338102386_li215708162415">In the navigation pane on the left, choose <span class="uicontrol" id="EN-US_TOPIC_0000002021043217__en-us_topic_0000002338102386_uicontrol722453846"><b>Clusters > OpenSearch</b></span>.</li><li id="EN-US_TOPIC_0000002021043217__en-us_topic_0000002338102386_li815717822419">In the cluster list, obtain the target cluster's private IP address from the <strong id="EN-US_TOPIC_0000002021043217__en-us_topic_0000002338102386_b11512044152320">Private IP Address</strong> column. Generally, the IP address format is <em id="EN-US_TOPIC_0000002021043217__en-us_topic_0000002338102386_i815104492319"><host></em>:<em id="EN-US_TOPIC_0000002021043217__en-us_topic_0000002338102386_i6151344152317"><port></em> or <em id="EN-US_TOPIC_0000002021043217__en-us_topic_0000002338102386_i1115144452317"><host></em>:<em id="EN-US_TOPIC_0000002021043217__en-us_topic_0000002338102386_i14151144412237"><port></em>,<em id="EN-US_TOPIC_0000002021043217__en-us_topic_0000002338102386_i12151194432312"><host></em>:<em id="EN-US_TOPIC_0000002021043217__en-us_topic_0000002338102386_i16151444142315"><port></em>.<p id="EN-US_TOPIC_0000002021043217__en-us_topic_0000002338102386_p615720817246">If the cluster has only one node, the IP address and port number of this single node are displayed, for example, <span class="parmvalue" id="EN-US_TOPIC_0000002021043217__en-us_topic_0000002338102386_parmvalue1950910310013"><b>10.62.179.32:9200</b></span>. If the cluster has multiple nodes and all of them are data nodes, the IP addresses and port numbers of all these nodes are displayed; if some of them are client nodes, only the IP addresses and port numbers of these client nodes are displayed; for example, <span class="parmvalue" id="EN-US_TOPIC_0000002021043217__en-us_topic_0000002338102386_parmvalue250963305"><b>10.62.179.32:9200,10.62.179.33:9200</b></span>.</p>
|
|
</li></ol>
|
|
</li><li id="EN-US_TOPIC_0000002021043217__li1215720258419">Install OpenSearch Dashboards on the ECS and modify the <span class="filepath" id="EN-US_TOPIC_0000002021043217__filepath20559425125218"><b>opensearch_dashboards.yml</b></span> configuration file.<ul id="EN-US_TOPIC_0000002021043217__ul2644425182118"><li id="EN-US_TOPIC_0000002021043217__li8644132515217">The following is an example of the configuration file for a security-mode cluster:<pre class="screen" id="EN-US_TOPIC_0000002021043217__screen96442251219">opensearch.username: "***" //Username of the security cluster
|
|
opensearch.password: "***" //Password of the security cluster
|
|
opensearch.ssl.verificationMode: none
|
|
server.ssl.enabled: false
|
|
server.rewriteBasePath: false
|
|
server.port: 5601
|
|
logging.dest: /home/Ruby/log/kibana.log
|
|
pid.file: /home/Ruby/run/kibana.pid
|
|
server.host: 192.168.xxx.xxx //IP address or DNS name of the OpenSearch Dashboards server. localhost is recommended.
|
|
opensearch.hosts: http://10.0.0.xxx:9200 //Address for accessing the OpenSearch cluster
|
|
opensearch.requestHeadersWhitelist: ["securitytenant","Authorization"]
|
|
opensearch_security.multitenancy.enabled: true
|
|
opensearch_security.multitenancy.tenants.enable_global: true
|
|
opensearch_security.multitenancy.tenants.enable_private: true
|
|
opensearch_security.multitenancy.tenants.preferred: ["Private", "Global"]
|
|
opensearch_security.multitenancy.enable_filter: false</pre>
|
|
<div class="note" id="EN-US_TOPIC_0000002021043217__note964582572118"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000002021043217__p1662202718313">To access a security-mode cluster, the opendistro_security_kibana plug-in must be installed. For details, see <a href="https://github.com/opendistro-for-elasticsearch/security-kibana-plugin/tags?after=v1.3.0.0" target="_blank" rel="noopener noreferrer">security-kibana-plugin</a>. The plug-in version must be the same as that of the cluster. To check the plug-in version, run the <b><span class="cmdname" id="EN-US_TOPIC_0000002021043217__cmdname5645202552119">GET _cat/plugins</span></b> command.</p>
|
|
</div></div>
|
|
</li><li id="EN-US_TOPIC_0000002021043217__li264518251218">The following is an example of the configuration file for a non-security mode cluster:<pre class="screen" id="EN-US_TOPIC_0000002021043217__screen06451925182118">server.port: 5601
|
|
logging.dest: /home/Ruby/log/opensearch-dashboards.log
|
|
pid.file: /home/Ruby/run/opensearch-dashboards.pid
|
|
server.host: 192.168.xxx.xxx //IP address or DNS name of the OpenSearch Dashboards server. localhost is recommended.
|
|
opensearch.hosts: http://10.0.0.xxx:9200 //Address for accessing the OpenSearch cluster</pre>
|
|
</li></ul>
|
|
</li><li id="EN-US_TOPIC_0000002021043217__li24576225335">Use a browser on your local PC to connect to the EIP associated with the ECS. The URL is <span class="parmvalue" id="EN-US_TOPIC_0000002021043217__parmvalue157921024125414"><b>http://EIP:5601</b></span>. Log in to OpenSearch Dashboards to access the OpenSearch cluster.</li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="css_02_0077.html">Accessing CSS Clusters</a></div>
|
|
</div>
|
|
</div>
|
|
|