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
This means that the shipper can't write to log files in the same way as the rest of the beats, which makes debugging a tad difficult, as the logs just get dumped to stdout along with elastic-agent's logs.
After some investigation, it appears that this is due to the isSupportedBeatsBinary function in internal/pkg/agent/application/monitoring/v1_monitor.go, which will make sure we only append those args if we have a beat.
So, we should either fix the list of "supported" beats so we get the full logging args, or we need another way of configuring logging settings for the shipper. This is potentially a very easy fix, but it's worth tracking in case we decide the shipper should somehow log differently.
The text was updated successfully, but these errors were encountered:
CC @cmacknz
Currently, when elastic-agent runs a beat, it passes CLI args that tell the beat where and how to write its logs:
However, when elastic-agent starts the shipper, we only get one of args, and its not for logging:
This means that the shipper can't write to log files in the same way as the rest of the beats, which makes debugging a tad difficult, as the logs just get dumped to stdout along with elastic-agent's logs.
After some investigation, it appears that this is due to the
isSupportedBeatsBinary
function ininternal/pkg/agent/application/monitoring/v1_monitor.go
, which will make sure we only append those args if we have a beat.So, we should either fix the list of "supported" beats so we get the full logging args, or we need another way of configuring logging settings for the shipper. This is potentially a very easy fix, but it's worth tracking in case we decide the shipper should somehow log differently.
The text was updated successfully, but these errors were encountered: