-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[elastic-agent]: ensure that the enroll command also logs to file if configured #24897
Comments
This is because of this change here: #24466 I think the change is correct, I would not expect the enroll command by default to write to a log file. We could change the Actually with |
That sounds very reasonable to me. |
The enroll command can be automatically triggered when starting the docker container. In which case the
LOGS_PATH
should be respected.Code path that needs to be changed:
https:/elastic/beats/blob/master/x-pack/elastic-agent/pkg/agent/cmd/enroll.go#L197-L200
The text was updated successfully, but these errors were encountered: