Environment:
- Agent2 configured to allow remote commands
- Remote commands working from front end
- DebugLevel=3 (Warnings)
- Plugins.SystemRun.LogRemoteCommands=1
Expected behavior:
Remote commands logged.
Actual behavior:
Remote commands not logged unless DebugLevel=4
Previous agent (old agent) properly logs commands @ DebugLevel=3
These lines in src/go/plugins/systemrun/systemrun.go seem to explain the actual behavior
70 if p.options.LogRemoteCommands == 1 && ctx.ClientID() != agent.LocalChecksClientID {} 71 p.Warningf("Executing command:'%s'", params[0]) 72 } else {} 73 p.Debugf("Executing command:'%s'", params[0]) 74
However, the config file description for Plugins.SystemRun.LogRemoteCommands states that commands will be logged "as warnings". Assume that means DebugLevel=3, like the previous agent?
This change in behavior doesn't seem to be documented anywhere.