tennaen
(Norbert Grzebieniarz)
February 13, 2020, 7:50am
1
I have running metricbeat, to monitor my ELK. It works great for Kibana and Elasticsearch, but when it comes to Logstash, it stops showing status. Starts working only after metricbeat restart.
Logstash version: 7.5.2
Metricbeat version: 7.5.2
Metricbeat logstash-xpack.yml
# Module: logstash
# Docs: https://www.elastic.co/guide/en/beats/metricbeat/7.5/metricbeat-module-logstash.html
- module: logstash
metricsets:
- node
- node_stats
period: 60s
hosts: ["my_ip:9600"]
username: "monitor"
password: "${monitor.password}"
xpack.enabled: true
logstash.yml
node.name: node_name
path.data: /u01/app/logstash/data
http.host: my_ip
http.port: 9600
log.level: info
path.logs: /u01/data/ls_logs
config.reload.automatic: true
xpack.monitoring.enabled: false
Metricbeat logs show this message:
2020-02-13T08:39:36.801+0100 ERROR [logstash.node_stats] node_stats/node_stats.go:81 HTTP error 400 in : 400 Bad Request
maxh1
February 14, 2020, 2:18am
2
We have the exact same problem here, on the same version (7.5.2).
Everything works fine for a while (after restarting Metricbeat), but then the dataflow stops, and we see the same error as OP in the logs:
2020-02-14T03:14:09.685+0100 ERROR [logstash.node_stats] node_stats/node_stats.go:81 HTTP error 400 in : 400 Bad Request
No errors can be seen on the Logstash side, that would explain why the HTTP API server is throwing back a 400 Bad Request.
Any suggestions?
praveenmak
(Praveen Mak)
February 17, 2020, 4:28pm
3
I have the same error , MB stops after node_stats fails.
shaunak
(Shaunak Kashyap)
February 18, 2020, 4:09pm
4
I think you might be running into this bug: https://github.com/elastic/beats/issues/15974 . It was fixed via https://github.com/elastic/beats/pull/16044 and the fix is released in version 7.6.0.
Hope that helps,
Shaunak
tennaen
(Norbert Grzebieniarz)
February 19, 2020, 10:25am
5
@shaunak metricbeat updated to 7.6. Now i can just wait.
tennaen
(Norbert Grzebieniarz)
February 20, 2020, 8:47am
6
It's working now. Thanks!
praveenmak
(Praveen Mak)
February 23, 2020, 4:08am
7
Yes, its working now. Thanks!
system
(system)
Closed
March 22, 2020, 4:08am
8
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.