在logstash.conf中配置端口64560、64501、64502、64503
在logstash.yml中配置用户名和密码
xpack.monitoring.enabled: true
xpack.monitoring.elasticsearch.username: "logstash_system"
xpack.monitoring.elasticsearch.password: "6yhn&ujM"
xpack.monitoring.elasticsearch.hosts: ["http://localhost:59200"]
在logstash指定的启动文件logstash.conf中加上具有索引权限的账号(登录kibana后创建的用户)
...
output {
elasticsearch {
hosts => "http://localhost:59200"
index => "bzzn-%{type}-%{+YYYY.MM.dd}"
user => "elastic"
password => "6yhn&ujM"
}
}