elasticsearch插件x-pack安装和使用

x-pack插件提供了安全、监控等额外功能,文章记录安装和密码设置。

x-pack 安装

在es目录下执行

./elasticsearch-plugin install x-pack

密码设置

官网设置教程
安装x-pack之后,需要设置es、kibana和logstash_system接入密码,交互式设置如下:根据提示设置即可

 bin/x-pack/setup-passwords interactive
        Enter password for [elastic]:
        Reenter password for [elastic]:
        Enter password for [kibana]:
        Reenter password for [kibana]:
        Enter password for [logstash_system]:
        Reenter password for [logstash_system]:
        Changed password for user [kibana]
        Changed password for user [logstash_system]
        Changed password for user [elastic]

logstash配置

input { stdin { } }
output {
  elasticsearch {
    hosts => ["ip:9200"]
    user => elastic
    password => elastic
  }
  stdout { codec => rubydebug }
}

kibana配置

设置kibana.yml

elasticsearch.username: "elastic"
elasticsearch.password: "elastic"

你可能感兴趣的:(随笔)