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

Improve Agent container cmd and fleet-server logs #28492

Closed
jlind23 opened this issue Oct 18, 2021 · 5 comments
Closed

Improve Agent container cmd and fleet-server logs #28492

jlind23 opened this issue Oct 18, 2021 · 5 comments
Assignees
Labels
Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team v7.15.2

Comments

@jlind23
Copy link
Collaborator

jlind23 commented Oct 18, 2021

Describe the enhancement:
Following development of #28260 we should ensure that logs are explicitly telling what is going on under the hood.
Logs in the agent container cmd and fleet-server should detail where we are at during the bootstraping process.
Per example: that apm-server is started but fleet-server not yet etc.

@jlind23 jlind23 added backport-v7.15.0 Automated backport with mergify 7.16 candidate Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team labels Oct 18, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane)

@jlind23 jlind23 added v7.15.2 and removed backport-v7.15.0 Automated backport with mergify 7.16 candidate labels Oct 18, 2021
@blakerouse
Copy link
Contributor

@jlind23 Can you provide some more detail on what your looking for here? The reporting from Fleet Server back to the Elastic Agent logs and reports what it's waiting on.

https://github.com/elastic/fleet-server/blob/master/internal/pkg/policy/self.go#L200

If you see that function it both reports those messages to Elastic Agent and logs to disk. Elastic Agent then also reports those messages as being received from Fleet Server.

@ruflin
Copy link
Contributor

ruflin commented Oct 20, 2021

Trying to remember what exactly we were missing here. The goal here is that when we have some issues in Cloud, that we can look at the logs and exactly tell if there is an issue with fleet-server during the setup, if it is hold back by Kibana, missing integrations and how apm-server is doing. Is this possible with the above?

@blakerouse
Copy link
Contributor

@jlind23 Yes because it would not be possible for the Elastic Agent to enroll at all without enrollment keys. Add the extendedMessage there would be redundant, and conflate the issue. The issue at that point of time is that it must have an enrollment key before it can continue.

@jlind23 jlind23 closed this as completed Nov 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team v7.15.2
Projects
None yet
Development

No branches or pull requests

4 participants