Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Metricbeat 7.5.2 silently stops collecting Logstash monitoring data #15974

Closed
clintonjimmie opened this issue Jan 30, 2020 · 2 comments · Fixed by #16044
Closed

Metricbeat 7.5.2 silently stops collecting Logstash monitoring data #15974

clintonjimmie opened this issue Jan 30, 2020 · 2 comments · Fixed by #16044
Assignees
Labels

Comments

@clintonjimmie
Copy link

clintonjimmie commented Jan 30, 2020

Issue: Moving over to Metricbeat Monitoring from the stack internal Monitoring tools and after an roughly 2 hours, the Logstash stats entirely drop out of the Monitoring app in Kibana. If I leaves the Monitoring tab open, the charts are empty of data. The logs are totally silent in regard to the failure. Nothing in Beats logs and nothing in Logstash logs.

In my lab setup I have one Metricbeat instance monitoring Kibana, Elasticsearch and Logstash. When Logstash stops showing up, it's the only monitoring module that stops / fails. Elasticsearch monitoring data is still coming in and so is Kibana monitoring data. To get Logstash information back into Monitoring, restarting the Metricbeat process is necessary. Restarting Logstash had no effect.

For confirmed bugs, please report:

  • Version: 7.5.2
  • Operating System: Ubuntu 18.04 LTS
  • Discuss Forum URL: N/A
  • Steps to Reproduce:

set up stack install of Elasticsearch (7.5.2 in my lab's case)
install and set up one instance of Metricbeat local to the node to monitor the components in the stack specifically Logstash
wait for Logstash to drop out of the Monitoring app in Kibana

@elasticmachine
Copy link
Collaborator

Pinging @elastic/stack-monitoring (Stack monitoring)

@ycombinator
Copy link
Contributor

ycombinator commented Feb 3, 2020

I think I'm able to reproduce this locally with Metricbeat 7.5.2. The only reason I'm not sure it's the same issue is because I do start seeing HTTP 400 errors in the Metricbeat log when Logstash data stops appearing in the Stack Monitoring UI whereas @clintonjimmie said in the issue description that they didn't see anything in the Metricbeat logs.

At any rate, the issue I'm seeing is this:

  1. When Metricbeat first starts up, the logstash module makes an HTTP call to the Logstash API: GET /_node/stats?vertices=true.
  2. The second time the logstash module calls the Logstash API, it adds another ?vertices=true to the URL. The third time, it adds one more, and so on.
  3. Evidently, Logstash happily accepts these URLs, but up to a point. At some point, it starts rejecting them with HTTP 400 responses. My guess is there is some length threshold that's being crossed in the Logstash HTTP server.

I will work on a fix to remove the repeated ?vertices=true occurrences in the API call.

@zube zube bot added [zube]: Done and removed [zube]: Ready labels Feb 4, 2020
@andresrc andresrc added the Team:Integrations Label for the Integrations team label Mar 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants