How do I increase the logging level of the RADIUS Agent logs? Skip to main content
https://support.okta.com/help/oktaarticledetailpage?childcateg=&id=ka02a000000u98osas&source=documentation&refurl=http%3a%2f%2fsupport.okta.com%2fhelp%2fdocumentation%2fknowledge_article%2fhow-do-i-increase-the-logging-level-of-the-radius-agent-logs
How satisfied are you with the Okta Help Center?
Thank you for your feedback!
How satisfied are you with the Okta Help Center?
1
2
3
4
5
Very Dissatisfied
Very satisfied
Enter content less than 200 characters.
Average Rating:
How do I increase the logging level of the RADIUS Agent logs?
Published: Mar 9, 2018   -   Updated: Mar 9, 2018

Issue: How do I increase the logging level of the RADIUS Agent logs?

Applies to: 
Resolution:
  1. Navigate to the Okta RADIUS Agent install directory (default: "C:\Program Files (x86)\Okta\Okta RADIUS Agent\current\user\config\radius")
  2. Edit the log4j.properties file
  3. To enable verbose logging, copy the following text into the log4j.properties file (replacing the file's current contents):
    # Direct log messages to a log file
    
    log4j.logger.app=DEBUG, app
    log4j.appender.app=org.apache.log4j.RollingFileAppender
    log4j.appender.app.File=../logs/okta_radius.log
    log4j.appender.app.immediateFlush=true
    log4j.appender.app.MaxFileSize=10MB
    log4j.appender.app.MaxBackupIndex=1
    log4j.appender.app.layout=com.okta.ragent.logging.RadiusPatternLayout
    log4j.appender.app.layout.ConversionPattern=%u [%h, %t] : %-5p - %m%n
    
    # Direct log messages to a log file
    log4j.logger.access=DEBUG, access
    log4j.appender.access=org.apache.log4j.RollingFileAppender
    log4j.appender.access.File=../logs/okta_radius.access.log
    log4j.appender.access.immediateFlush=true
    log4j.appender.access.MaxFileSize=10MB
    log4j.appender.access.MaxBackupIndex=1
    log4j.appender.access.layout=com.okta.ragent.logging.RadiusPatternLayout
    log4j.appender.access.layout.ConversionPattern=%u [%h, %t] : %-5p - %m%n
    
    # Direct log messages to stdout
    log4j.logger.access=DEBUG, access
    log4j.appender.stdout=org.apache.log4j.ConsoleAppender
    log4j.appender.stdout.Target=System.out
    log4j.appender.stdout.layout=com.okta.ragent.logging.RadiusPatternLayout
    #log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
    log4j.appender.stdout.layout.ConversionPattern=%u [%h, %t] : %-5p - %m%n
    
    # Root logger option
    log4j.rootLogger=DEBUG, app, stdout

    ***Note - the delta between the default log4j.properties file and the text above is “INFO -> DEBUG” and “log4j.logger.access=DEBUG, access” added under # Direct log messages to stdout***
  4. Save your changes to the file
  5. Restart the Okta RADIUS Agent service

Post a Comment