User Tools

Site Tools


elasticsearch-tls

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
elasticsearch-tls [2020/11/08 11:06] baumielasticsearch-tls [2020/11/08 12:41] (current) baumi
Line 160: Line 160:
 $ cp certs/elasticsearch/http.p12 elasticsearch/config/elasticsearch.p12 $ cp certs/elasticsearch/http.p12 elasticsearch/config/elasticsearch.p12
 $ sudo chown 1000:1000 elasticsearch/config/elasticsearch.p12 $ sudo chown 1000:1000 elasticsearch/config/elasticsearch.p12
-$ sudo chmod 600 elasticsearch/config/elasticsearch.p12</code> +$ sudo chmod 600 elasticsearch/config/elasticsearch.p12 
 +</code>
   - Update elasticsearch.yml<code>   - Update elasticsearch.yml<code>
 $ grep xpack elasticsearch/config/elasticsearch.yml $ grep xpack elasticsearch/config/elasticsearch.yml
Line 222: Line 222:
 $ docker-compose up -d && docker-compose logs -f $ docker-compose up -d && docker-compose logs -f
 </code> </code>
 +
 +===== Move username & password from Kibana Config =====
 +
 +  - Create Keystore and populate with logon information<code>
 +$ docker exec -it elk-test-kibana bash
 +bash-4.2$ bin/kibana-keystore create
 +Created Kibana keystore in /usr/share/kibana/config/kibana.keystore
 +bash-4.2$ bin/kibana-keystore add elasticsearch.username
 +Enter value for elasticsearch.username: *************
 +bash-4.2$ bin/kibana-keystore add elasticsearch.password
 +Enter value for elasticsearch.password: ********************
 +</code>
 +  - Copy keystore to persistent storage<code>
 +$ docker cp elk-test-kibana:/usr/share/kibana/config/kibana.keystore /srv/elk-test/kibana/config/
 +</code>
 +  - Adjust docker-compose.yml for bind mount of keystore file<code>
 +services:
 +  kibana:
 +    volumes:
 +      - ./kibana/config/kibana.keystore:/usr/share/kibana/config/kibana.keystore
 +</code>
 +  - Remove elasticsearch.username and elasticsearch.username from kibana.yml
 +  - Restart kibana
 +
 +
 +
 {{tag>kb elasticsearch}} {{tag>kb elasticsearch}}
  
elasticsearch-tls.1604829976.txt.gz · Last modified: 2020/11/08 11:06 by baumi

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki