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

Logstash monitoring data collection requires Metricbeat to be started after Logstash #17261

Closed
fdartayre opened this issue Mar 26, 2020 · 3 comments · Fixed by #17497
Closed
Assignees
Labels
bug Feature:Stack Monitoring Metricbeat Metricbeat Team:Services (Deprecated) Label for the former Integrations-Services team

Comments

@fdartayre
Copy link
Contributor

fdartayre commented Mar 26, 2020

Logstash version: 7.6.1
Metricbeat version: 7.6.1

Reproduction:

  • Start Metricbeat with the logstash-xpack module to collect monitoring data from a Logstash instance
  • Start the Logstash instance after Metricbeat

Metricbeat creates the .monitoring-logstash-7-mb- index and indexes documents containing logstash_stats. However the documents don't contain the cluster_uuid field, which causes the Logstash node to not be visible in the monitoring overview in Kibana.

To discover the Logstash nodes, it seems that Kibana sends a query with such a filter:

"filter": [
  {
    "term": {
      "cluster_uuid": {
        "value": "f1zKRFHKQGyfwGgRMOJHDQ",
        "boost": 1
      }
    }
  },
  {
    "range": {
      "logstash_stats.timestamp": {
        "from": null,
        "to": null,
        "include_lower": true,
        "include_upper": true,
        "boost": 1
      }
    }
  }
]

After restarting Metricbeat, subsequent documents contain a cluster_uuid and the Logstash node will appear in monitoring.

@elasticmachine
Copy link
Collaborator

Pinging @elastic/stack-monitoring (Stack monitoring)

@fdartayre fdartayre changed the title Logstash monitoring data collection requires Metricbeat to be started after LS Logstash monitoring data collection requires Metricbeat to be started after Logstash Mar 26, 2020
@ycombinator ycombinator added the Team:Services (Deprecated) Label for the former Integrations-Services team label Mar 27, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations-services (Team:Services)

@ycombinator
Copy link
Contributor

I can confirm this bug with Metricbeat 7.6.1 as well as 8.0.0 (master).

Note that this only appears to be happening with type: logstash_stats documents, not type: logstash_state documents. So that would narrow it down to the logstash/node_stats metricset code.

mdelapenya added a commit to mdelapenya/e2e-testing that referenced this issue May 18, 2020
We were suffering this bug in metricbeat 7.6.0: elastic/beats#17261
mdelapenya added a commit to mdelapenya/e2e-testing that referenced this issue Jun 3, 2020
We were suffering this bug in metricbeat 7.6.0: elastic/beats#17261
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Feature:Stack Monitoring Metricbeat Metricbeat Team:Services (Deprecated) Label for the former Integrations-Services team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants