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

Beats diagnostics tooling #21965

Closed
5 of 10 tasks
urso opened this issue Oct 19, 2020 · 5 comments
Closed
5 of 10 tasks

Beats diagnostics tooling #21965

urso opened this issue Oct 19, 2020 · 5 comments
Assignees
Labels
backport-v7.16.0 Automated backport with mergify enhancement Team:Services (Deprecated) Label for the former Integrations-Services team v8.0.0

Comments

@urso
Copy link

urso commented Oct 19, 2020

Beats should provide a tool that allows one to easily collect information that can help to analyze known user issues. Diagnostics should contain static information like host meta data, configuration files and existing log files. Active data collection should also be supported, like metrics or memory profiles.

Tasks Phase 1:

  • Enable http endpoint with unix socket or named pipe by default. e.g. /var/lib/<meta-hash>.sock - completed as part of previous work to enable monitoring
  • Add API to read current Beats configuration. For now the static configuration used on startup, including modules. - completed as part of previous work for elastic-agent inspect
  • Introduce CLI subcommand 'diag collect' collecting diagnostics into a zip file:
    • query Beat info via unix socket
    • query active Beat configuration
  • Collect the Beat instance log files if file output has been configured.
  • Beats diagnostic tooling - Phase II elastic-agent#94
    • Libbeat collects metrics every 10s into ring buffer (N=60)
    • Expose internal metrics via API
    • Diagnostics tool reads metrics ring buffer
  • (optional) CLI subcommand diag add to add extra files and directories to a diagnostics report.
  • log / capture std from the processes started
@urso urso added enhancement Team:Services (Deprecated) Label for the former Integrations-Services team labels Oct 19, 2020
@elasticmachine
Copy link
Collaborator

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

@jlind23
Copy link
Collaborator

jlind23 commented Oct 19, 2021

@michel-laterman should that one also be part of 8.0 or everything has been done in 7.16?

@michel-laterman
Copy link
Contributor

The diagnostics collect command is being backported to 7.16, it can gather meta-data, configuration, the active policy, and local logs.

@jlind23
Copy link
Collaborator

jlind23 commented Nov 30, 2021

@michel-laterman just added a task around: log / capture std from the processes started

@jlind23
Copy link
Collaborator

jlind23 commented Jan 10, 2022

Closing - Future work will be track there: elastic/elastic-agent#94

@jlind23 jlind23 closed this as completed Jan 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-v7.16.0 Automated backport with mergify enhancement Team:Services (Deprecated) Label for the former Integrations-Services team v8.0.0
Projects
None yet
Development

No branches or pull requests

4 participants