The ºÚÁϺ£½Ç91Èë¿Ú Agent logging level can be set to log more verbose logs if necessary. Debug logs can provide additional information for administrators or ºÚÁϺ£½Ç91Èë¿Ú support. Remotely changing the logging level of the ºÚÁϺ£½Ç91Èë¿Ú Agent can be triggered by a ºÚÁϺ£½Ç91Èë¿Ú Command.
Debug logs contain much more information than the default log level; there’s no need to change log level to a higher verbosity other than for troubleshooting. After setting a system’s agent log level to Debug, it’s best practice to reset the logging level to default.
Setting the Log Level Locally
Linux
Sudo privileges are required for the following commands.
To set Debug level logging and restart the ºÚÁϺ£½Ç91Èë¿Ú Agent:
echo "DEBUG" | sudo tee /opt/jc/loglevel.cache && sudo service jcagent restart
To disable Debug level logging and restart the ºÚÁϺ£½Ç91Èë¿Ú Agent:
sudo rm /opt/jc/loglevel.cache && sudo service jcagent restart
Mac
Sudo privileges are required for the following commands.
To set Debug level logging and restart the ºÚÁϺ£½Ç91Èë¿Ú Agent:
echo "DEBUG" | sudo tee /opt/jc/loglevel.cache && sudo launchctl stop com.jumpcloud.darwin-agent
To disable Debug level logging and restart the ºÚÁϺ£½Ç91Èë¿Ú Agent:
sudo rm /opt/jc/loglevel.cache && sudo launchctl stop com.jumpcloud.darwin-agent
Windows
Run the following commands from an elevated PowerShell console.
To set Debug level logging:
echo DEBUG | set-content 'C:\Program Files\ºÚÁϺ£½Ç91Èë¿Ú\loglevel.cache'
Stop-Service -Name jumpcloud-agent -Force
Start-Service -Name jumpcloud-agent
To disable Debug level logging:
echo INFO | set-content 'C:\Program Files\ºÚÁϺ£½Ç91Èë¿Ú\loglevel.cache'
Stop-Service -Name jumpcloud-agent -Force
Start-Service -Name jumpcloud-agent
Setting the Log Level Remotely
Alternately, the ºÚÁϺ£½Ç91Èë¿Ú Command Gallery contains scripts to set the logging level of a system’s ºÚÁϺ£½Ç91Èë¿Ú Agent. After setting a system’s agent log level to Debug, it’s best practice to reset the logging level to default.
Importable commands to set the logging level:
Importable commands to set the logging level back to default: