I have just upgraded our ELK-stack to 8.3.3 and I am migrating the monitoring to use Metricbeat. Elasticsearch and Kibana works without any issues. However for Logstash I'm seeing the following in the logs
{
"log.level": "error",
"@timestamp": "2022-08-09T12:25:32.187+0200",
"log.origin": {
"file.name": "module/wrapper.go",
"file.line": 256
},
"message": "Error fetching data for metricset logstash.node: Could not find field 'id' in Logstash API response",
"service.name": "metricbeat",
"ecs.version": "1.6.0"
}
There are two similar threads but they are both closed due to inactivity:
Unfortunately I cannot find a solution to my error from those threads. I have done the following:
Verified that the Logstash API endpoints return an id field in the response
Verified that the target index is a data stream
Verified that Logstash monitoring is visible in Kibana Stack Monitoring view
Enabled debug logging for Metricbeat to get more details
Some details about our setup
Everything is running on version 8.3.3
We are running without any security, so no auth and no tls
We are running Logstash with xpack.monitoring.enabled and not monitoring.enabled because I got a license check error without the xpack.monitoring.hosts configuration and it is not possible to run with both xpack.monitoring and monitoring simultaneously
We are running Metricbeat with all the module configured inlined in the main configuration file (i.e. without running metricbeat modules enable logstash-xpack)
That looks promising - I wonder if there are nightly builds available for download ? or if I should try to build the main branch locally and see if the error is fixed!
Just tried the new version and I am no longer seeing the original error so it seem to have been fixed!
However, I am seeing the log line below instead but I don't have time to troubleshoot the details. Could be because I was running Metricbeat 8.4.0 against Logstash 8.3.3.
metricbeat.log-20220830.ndjson:{"log.level":"warn","@timestamp":"2022-08-30T06:31:30.712+0200","log.logger":"logstash.node_stats","log.origin":{"file.name":"node_stats/data.go","file.line":189},"message":"Pipeline document was discarded due to missing properties. This can happen when the Logstash node stats API is polled before the pipeline setup has completed. Pipeline ID: .monitoring-logstash","service.name":"metricbeat","ecs.version":"1.6.0"}
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.