Home > Jamf Pro, Mac administration > Enabling debug logging for the JAMFSoftwareServer log on Jamf Pro limited access nodes

Enabling debug logging for the JAMFSoftwareServer log on Jamf Pro limited access nodes

As part of working on an issue with Jamf Support, I needed to enable debug logging for the JAMFSoftwareServer.log log file on my Jamf Pro server. This is normally a pretty straightforward process:

1. Log into your Jamf Pro server.

2. Go to Management Settings: Jamf Pro Information: Jamf Pro Server Logs.

Screen Shot 2019 08 02 at 10 30 49 AM

3. Click the Edit button.

Screen Shot 2019 08 02 at 10 38 29 AM

4. Check the checkbox for Enable Debug Mode.

Screen Shot 2019 08 02 at 10 38 20 AM

5. Click the Save button.

Screen Shot 2019 08 02 at 10 31 23 AM

6. Verify that the log has changed into debug mode.

Screen Shot 2019 08 02 at 10 31 35 AM

However, what do you do about Jamf Pro servers which are set to limited access? The admin console is disabled on limited access nodes, which means you can’t use the admin console’s functionality to enable debug logging. There is a way, but it means editing some Tomcat settings. For more details, please see below the jump.

To enable debug logging for limited access nodes, you need to edit the log4j.properties file, which manages logging for both the JAMFSoftwareServer.log and JAMFChangeManagement.log logfiles. The log4j.properties file is stored in the following location:

/path/to/tomcat_directory/webapps/ROOT/WEB-INF/classes/log4j.properties

 

To turn debug logging on:

1. Open the log4j.properties file.

2. Search for the following string:

log4j.rootLogger=INFO,JAMF

Screen Shot 2019 08 02 at 11 01 22 AM

Screen Shot 2019 08 02 at 11 01 39 AM

3. Change it to the following:

log4j.rootLogger=DEBUG,JAMF

Screen Shot 2019 08 02 at 11 02 04 AM

4. Save changes to the log4j.properties file.

5. Once the change has been made, restart Tomcat.

 

To turn debug logging off:

1. Open the log4j.properties file.

2. Search for the following string:

log4j.rootLogger=DEBUG,JAMF

Screen Shot 2019 08 02 at 11 02 46 AM

Screen Shot 2019 08 02 at 11 10 33 AM

3. Change it to the following:

log4j.rootLogger=INFO,JAMF

Screen Shot 2019 08 02 at 11 07 23 AM

4. Save changes to the log4j.properties file.

5. Once the change has been made, restart Tomcat.

 

  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: