Skip to content

Beats diagnostics tooling #21965

@urso

Description

@urso

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

Metadata

Metadata

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions