kibana5.3 uses the x-pack plug-in to monitor the elasticsearch5.3 cluster kibana5.3 uses the x-pack plug-in to monitor the elasticsearch5.3 cluster

kibana5.3 uses the x-pack plugin to monitor the elasticsearch5.3 cluster

Requirements: After installing elasticsearch, add the x-pack plugin to access the elasticsearch index without user authentication; and you can view the monitor module on the kibana page

Description: Since it is only a problem-solving experience, what is wrong, please give pointers

solve:

Environment: centos (windows users only need to download the corresponding zip package and unzip the address https://www.elastic.co/downloads/past-releases)

1: Install elasticsearch

wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.3.0.tar.gz

tar -zxvf  elasticsearch-5.3.0.tar.gz

cd elasticsearch-5.3.0

2: Install the Elasticsearch plugin X-Pack  
bin/elasticsearch-plugin install x-pack

3: Start Elasticsearc 

bin/elasticsearch -d

/**
Default ElasticSearch user:
username:elastic
password:changeme
**/


4: Create a new special user with monitor view permission
--add role permission
curl -XPOST -u elastic:changeme 'localhsot:9200/_xpack/security /role/monitor_admin' -d '{
  "indices" : [
    {
      "names" : [ "events*" ],
      "privileges" : [ "all" ]
    },
    {
      "names" : [ ".kibana*" ],
      "privileges" : [ "manage", "read", "index" ]
    }
  ]
}'

-- add user and give role permissions
curl -XPOST -u elastic:changeme 'localhsot:9200/_xpack/security/user/monitor' -d '{
  "password" : "monitor",
  "full_name" : "monitor",
  "email" : "[email protected]",
  "roles" : [ "events_admin" ]
}'


5: 停止 elasticsearch
pid=$(ps -ef |egrep -v grep | grep elasticsearch | awk '{ print $2}')

kill -9  $pid


6: Add the following configuration in config/elasticsearch.yml to remove the permission kongzhi

xpack.security.enabled: false

--restart es

bin/elasticsearch -d


7: A dress kibana

wget https://artifacts.elastic.co/downloads/kibana/kibana-5.3.0-linux-x86_64.tar.gz

tar -zxvf  kibana-5.3.0-linux-x86_64.tar.gz

cd kibana-5.3.0-linux-x86_64

8: Install Kibana's X-Pack plugin
bin/kibana-plugin install x-pack

9: Add a user with special permissions to kibana.yml as the default login user 
xpack.security.enabled: false elasticsearch.username
: "monitor"
elasticsearch. password: "monitor"
elasticsearch.url: "http://localhost:9200"
server.host: "localhost"
server.name: "localhost"

# elasticsearch.url : the remote elasticsearch server 
# elasticsearch.username and elasticsearch.password : the login user
# server.host : use this ip to login in
# xpack.security.enabled : close security module


10: login in kibana 

http://localhost:5601  

Effect diagram: es cluster, the new node only needs to copy the first es file and remove the data file, and then set the node node to be different from the first node and start it again to see the cluster effect.



Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325944049&siteId=291194637