安装elasticsearch时发生以下命令执行错误
# filebeat setup --index-management -E setup.template.json.enabled=false
Exiting: Couldn't connect to any of the configured Elasticsearch hosts. Errors: [Error connection to Elasticsearch https://10.10.10.7:9200: Get https://10.10.10.7:9200: dial tcp 10.10.10.7:9200: connect: connection refused]
解决方法
# filebeat setup --index-management -E output.logstash.enabled=false -E 'output.elasticsearch.hosts=["localhost:9200"]'
参考官网
https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-template.html
© 走过岁月...... | Powered by LOFTER