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

Libbeat diagnostic tooling #28977

Open
P1llus opened this issue Nov 15, 2021 · 9 comments
Open

Libbeat diagnostic tooling #28977

P1llus opened this issue Nov 15, 2021 · 9 comments
Assignees
Labels
Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team Team:Integrations Label for the Integrations team

Comments

@P1llus
Copy link
Member

P1llus commented Nov 15, 2021

Similar to the new diagnostic commands introduced in Elastic Agent, ref:
#28461
#28265

We would like to have something similar to be able to collect diagnostics from beats them self (metricbeat, filebeat etc).

The diagnostic command would run from the *beat binary, and should be able to connect to an already running instance to collect:

  1. The current running configuration (for example both filebeat.yml and the yml of the related enabled modules).
  2. Collect the logs from the log path configured by the running beat instance.
  3. Collect metadata from the running beat like version, OS architecture etc and store it in JSON.
  4. Optional(Also connect to pprof over unix socket/windows named pipes) to collect pprof over X configured time, on X interval.
  5. Gather all information into a ZIP/tar.gz archive so that it can be downloaded by the end user.
@P1llus P1llus added the Team:Integrations Label for the Integrations team label Nov 15, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations (Team:Integrations)

@P1llus
Copy link
Member Author

P1llus commented Nov 15, 2021

@michel-laterman

@michel-laterman
Copy link
Contributor

cc @jlind23

@jlind23 jlind23 added the Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team label Nov 16, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane)

@jlind23
Copy link
Collaborator

jlind23 commented Nov 17, 2021

@P1llus heard that you already have some kind of a POC ready for this? Am I right?

@endorama
Copy link
Member

endorama commented Nov 17, 2021

Hello, I just wanted to link some related work that has been done on this same topic.

A previous issue that targeted the same feature in beats: #21965
Agent related issue https://github.com/elastic/obs-dc-team/issues/554
Design doc: https://docs.google.com/document/d/17Z_u7tGFiBn7o_mSTeeKoeJFeB6DGbUGm7oZeqjJbi4/edit

@P1llus
Copy link
Member Author

P1llus commented Nov 17, 2021

@jlind23 I did a very early POC for this, though the code is very rough and not nearly finished.
However the plan was to start working on a more permanent diagnostic command, but then I heard someone was already working on that.

@P1llus
Copy link
Member Author

P1llus commented Nov 17, 2021

Hello, I just wanted to link some related work that has been done on this same topic.

A previous issue that targeted the same feature in beats: #21965 Agent related issue elastic/obs-dc-team#554 Design doc: https://docs.google.com/document/d/17Z_u7tGFiBn7o_mSTeeKoeJFeB6DGbUGm7oZeqjJbi4/edit

Absolutely known! :) This was created as a follow-up to a discussion, since the currently merged work was only around elastic-agent, so a separate issue was created, though that might not have been needed in that case.

@jlind23
Copy link
Collaborator

jlind23 commented Nov 18, 2021

@P1llus following our discussions I have assigned to you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team Team:Integrations Label for the Integrations team
Projects
None yet
Development

No branches or pull requests

5 participants