沙师弟,师父的充电器掉了

安裝 metricbeat 無法傳送訊息 Logstash

Beats | 作者 cddisk2017 | 发布于2017年09月12日 | 阅读数:3913

各位朋友大家好:
 
安裝「metricbeat」版本「metricbeat-5.5.2-linux-x86_64」無法傳送訊息給 Logstash
使用「壓縮包」方法,修改「vi metricbeat.yml」設定檔
 
#================================ Outputs =====================================

# Configure what outputs to use when sending the data collected by the beat.
# Multiple outputs may be used.

#-------------------------- Elasticsearch output ------------------------------
output.elasticsearch:
# Array of hosts to connect to.
# hosts: ["192.168.1.249:9200"]

# Optional protocol and basic auth credentials.
#protocol: "https"
#username: "elastic"
#password: "changeme"

#----------------------------- Logstash output --------------------------------
#output.logstash:
# The Logstash hosts
hosts: ["192.168.1.249:5043"]

# Optional SSL. By default is off.
# List of root certificates for HTTPS server verifications
#ssl.certificate_authorities: ["/etc/pki/root/ca.pem"]

# Certificate for SSL client authentication
#ssl.certificate: "/etc/pki/client/cert.pem"

# Client Certificate Key
#ssl.key: "/etc/pki/client/cert.key"
出現如下錯誤
 
2017/09/12 08:11:50.554176 single.go:140: ERR Connecting error publishing events (retrying): Get http://192.168.1.249:5043: read tcp 192.168.2.17:51342->192.168.1.249:5043: read: connection reset by peer

有朋友遇到此問題嗎? 
 
已邀请:

cddisk2017 - 80後 IT 男

赞同来自: wy993322

我找到問題了!  配置檔修改如下:
 
 
#================================ Outputs =====================================

# Configure what outputs to use when sending the data collected by the beat.
# Multiple outputs may be used.

#-------------------------- Elasticsearch output ------------------------------
# output.elasticsearch:
# Array of hosts to connect to.
# hosts: ["localhost:9200"]

# Optional protocol and basic auth credentials.
#protocol: "https"
#username: "elastic"
#password: "changeme"

#----------------------------- Logstash output --------------------------------
output.logstash:
# The Logstash hosts
hosts: ["192.168.1.249:5043"]

# Optional SSL. By default is off.
# List of root certificates for HTTPS server verifications
#ssl.certificate_authorities: ["/etc/pki/root/ca.pem"]

# Certificate for SSL client authentication
#ssl.certificate: "/etc/pki/client/cert.pem"

# Client Certificate Key
#ssl.key: "/etc/pki/client/cert.key"

wy993322 - 90

赞同来自:

和我一样 ,配置文件错了,眼真好

要回复问题请先登录注册