Files
doc-exports/docs/css/umn/css_02_0097.html
zhengxiu 2125539080 css umn 25.1.0 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: zhengxiu <zhengxiu@huawei.com>
Co-committed-by: zhengxiu <zhengxiu@huawei.com>
2025-07-04 09:10:17 +00:00

43 lines
5.7 KiB
HTML

<a name="css_02_0097"></a><a name="css_02_0097"></a>
<h1 class="topictitle1">How Do I Connect In-house Developed Kibana to an Elasticsearch Cluster in CSS?</h1>
<div id="body1607331461686"><div class="section" id="css_02_0097__section5307125464920"><h4 class="sectiontitle">Constraints</h4><p id="css_02_0097__p111011578497">Only Kibana images of the OSS version can be connected to Elasticsearch clusters in CSS.</p>
</div>
<div class="section" id="css_02_0097__section1779411035010"><h4 class="sectiontitle">Procedure</h4><ol id="css_02_0097__ol20533192815573"><li id="css_02_0097__li2534142811579">Create an ECS.<ul id="css_02_0097__ul95309321314"><li id="css_02_0097__li8530932812">The ECS must be within the same VPC as the CSS cluster.</li><li id="css_02_0097__li55301132616">Port 5601 must be allowed by the security group associated with the ECS.</li><li id="css_02_0097__li253063217114">An EIP must be allocated to the ECS.</li></ul>
<p id="css_02_0097__p328551712584">For details, see <em id="css_02_0097__i20583184291917">Elastic Cloud Server (ECS) User Guide</em>.</p>
</li><li id="css_02_0097__li276773217411">Obtain the address for accessing the Elasticsearch cluster of CSS.<ol type="a" id="css_02_0097__css_01_0381_ol15355114704317"><li id="css_02_0097__css_01_0384_en-us_topic_0000001961178833_li07251912434">In the navigation pane on the left, choose <span class="wintitle" id="css_02_0097__css_01_0384_wintitle8395155017380"><b>Clusters</b></span>.</li><li id="css_02_0097__css_01_0384_en-us_topic_0000001961178833_li392216231538">In the cluster list, obtain the IP address of the cluster you want to access from the <strong id="css_02_0097__css_01_0384_b1213816218488">Private Network Address</strong> column. Generally, the IP address format is <em id="css_02_0097__css_01_0384_i913822112488">&lt;host&gt;</em><strong id="css_02_0097__css_01_0384_b11381215483">:</strong><em id="css_02_0097__css_01_0384_i131381621114811">&lt;port&gt;</em> or <em id="css_02_0097__css_01_0384_i9139122154816">&lt;host&gt;</em><strong id="css_02_0097__css_01_0384_b3139821144816">:</strong><em id="css_02_0097__css_01_0384_i71391521194817">&lt;port&gt;</em><strong id="css_02_0097__css_01_0384_b1813942115484">,</strong><em id="css_02_0097__css_01_0384_i1713918215481">&lt;host&gt;</em><strong id="css_02_0097__css_01_0384_b101391921114810">:</strong><em id="css_02_0097__css_01_0384_i111392216488">&lt;port&gt;</em>.<p id="css_02_0097__css_01_0384_en-us_topic_0000001961178833_p18422185125018">If the cluster has only one node, the IP address and port number of this one node are displayed, for example, <strong id="css_02_0097__css_01_0384_b310751519481">10.62.179.32:9200</strong>. If the cluster has multiple nodes, the IP addresses and port numbers of all nodes are displayed, for example, <strong id="css_02_0097__css_01_0384_b1610791594811">10.62.179.32:9200,10.62.179.33:9200</strong>.</p>
</li></ol>
</li><li id="css_02_0097__li1215720258419">Install Kibana on the ECS and modify the configuration file.<ul id="css_02_0097__ul2644425182118"><li id="css_02_0097__li8644132515217">The following is an example of the configuration file for a security-mode cluster:<pre class="screen" id="css_02_0097__screen96442251219">elasticsearch.username: "***" //Username of the security cluster
elasticsearch.password: "***" //Password of the security cluster
elasticsearch.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 Kibana server. localhost is recommended.
elasticsearch.hosts: http://10.0.0.xxx:9200 //Address for accessing the Elasticsearch cluster
elasticsearch.requestHeadersWhitelist: ["securitytenant","Authorization"]
opendistro_security.multitenancy.enabled: true
opendistro_security.multitenancy.tenants.enable_global: true
opendistro_security.multitenancy.tenants.enable_private: true
opendistro_security.multitenancy.tenants.preferred: ["Private", "Global"]
opendistro_security.multitenancy.enable_filter: false</pre>
<div class="note" id="css_02_0097__note964582572118"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="css_02_0097__ul1645122592117"><li id="css_02_0097__li8645122542114">In security mode, 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>.</li><li id="css_02_0097__li13645172517211">The version of the installed plug-in must be the same as that of the cluster. To check the plug-in version, run the <b><span class="cmdname" id="css_02_0097__cmdname5645202552119">GET _cat/plugins</span></b> command.</li></ul>
</div></div>
</li><li id="css_02_0097__li264518251218">The following is an example of the configuration file for a non-security mode cluster:<pre class="screen" id="css_02_0097__screen06451925182118">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 Kibana server. localhost is recommended.
elasticsearch.hosts: http://10.0.0.xxx:9200 //Address for accessing the Elasticsearch cluster</pre>
</li></ul>
</li><li id="css_02_0097__li24576225335">Use a browser on your local PC to access the EIP bound to the ECS. The URL is <span class="parmvalue" id="css_02_0097__parmvalue15721455121819"><b>http://EIP:5601</b></span>. Log in to Kibana to access the Elasticsearch 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>