You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we log to the Event Log if the run subcommand fails under Windows. This has been useful in capturing errors from the Windows Service Manager. We should add this same logging to the install, uninstall, and enroll sub-commands. These commands can often be run from DevOps software that make it hard to capture the error.
leehinman
changed the title
Add logging to Event Log for install & uninstall
Add logging to Event Log for install, uninstall, and enroll subcommands
Dec 13, 2024
Currently we log to the Event Log if the
run
subcommand fails under Windows. This has been useful in capturing errors from the Windows Service Manager. We should add this same logging to theinstall
,uninstall
, andenroll
sub-commands. These commands can often be run from DevOps software that make it hard to capture the error.Code similar to
elastic-agent/internal/pkg/agent/cmd/run.go
Line 92 in 1eeb722
install
anduninstall
The text was updated successfully, but these errors were encountered: