es6.*开启X-Pack

开启X-Pack

# 新版Elastic Stack整合了X-pack,无需单独安装。
echo "xpack.security.enabled: true" >>/etc/elasticsearch/elasticsearch.yml
service elasticsearch restart

设置各类应用密码

/usr/share/elasticsearch/bin/elasticsearch-setup-passwords interactive
# elastic 用户为超级管理员

为logstash输出到elasticsearch配置密码

output{
  if [type] == "sit" or [type] == "pro" or [type] == "uat" or [type] == "ptsit" {
    elasticsearch {
      hosts => "localhost:9200"
      user => "elastic"
      password => "kibana"
      document_type => "doc"
      index => "gameclient-%{+YYYY.MM.dd}"
    }
  }
}

各类监控应用状态使用的账号密码配置

kibana
vi /etc/kibana/kibana.yml
elasticsearch.username: "kibana"
elasticsearch.password: "kibana"
# 控制web页面使用的功能:
xpack.apm.enabled: false            设置为false禁用X-Pack性能管理功能。
xpack.graph.enabled: false          设置为false禁用X-Pack图形功能。
xpack.ml.enabled: false             设置为false禁用X-Pack机器学习功能。
xpack.monitoring.enabled: false     设置为false禁用X-Pack监视功能。
xpack.reporting.enabled: false      设置为false禁用X-Pack报告功能。
# xpack.security.enabled: false       设置为false禁用X-Pack安全功能。(引起报错)
xpack.watcher.enabled: false        设置false为禁用观察器。
# https://www.elastic.co/guide/en/kibana/current/settings-xpack-kb.html
logstash
vi /etc/logstash/logstash.yml
xpack.monitoring.enabled: true
xpack.monitoring.elasticsearch.username: logstash_system
xpack.monitoring.elasticsearch.password: kibana
xpack.monitoring.elasticsearch.url: ["http://localhost:9200"]
filebeat
vi /etc/filebeat/filebeat.yml
xpack.monitoring.enabled: true
xpack.monitoring.elasticsearch.username: beats_system
xpack.monitoring.elasticsearch.password: kibana
xpack.monitoring.elasticsearch.hosts: ["http://localhost:9200"]
posted @   技术颜良  阅读(479)  评论(0编辑  收藏  举报
编辑推荐:
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
· 一个奇形怪状的面试题:Bean中的CHM要不要加volatile?
· [.NET]调用本地 Deepseek 模型
· 一个费力不讨好的项目,让我损失了近一半的绩效!
阅读排行:
· 全网最简单!3分钟用满血DeepSeek R1开发一款AI智能客服,零代码轻松接入微信、公众号、小程
· .NET 10 首个预览版发布,跨平台开发与性能全面提升
· 《HelloGitHub》第 107 期
· 全程使用 AI 从 0 到 1 写了个小工具
· 从文本到图像:SSE 如何助力 AI 内容实时呈现?(Typescript篇)
历史上的今天:
2018-05-10 MongoDB用户授权和管理
2018-05-10 Kubernetes之利用prometheus监控K8S集群
点击右上角即可分享
微信分享提示