This article describes how to retrieve Okta Agent Logs for troubleshooting the AD Agent, LDAP Agent, and RADIUS Agent.
- AD Agent
- LDAP Agent
- IWA Agent
- RADIUS Agent
AD Agent
The following video shows how to enable verbose logging on the Okta AD Agent.
Log Retrieval
-
On the system running the affected AD Agent, navigate to the Logs directory in the AD Agent install directory.
-
By default, this is
C:\Program Files (x86)\Okta\Okta AD Agent\logs.
-
- The most recent log file is named Agent.log. Older log files will have a number appended to the filename (for example,
Agent-1.log), with each successive number representing an older log file. - The log files are limited to 5 MB in size and are continually updated with new information. The files "roll over" as each new Agent.log file size limit is reached.
- The "InstallUtil.log" file provides information related to both installations and updates.
- The "Service.log" file details when the OktaADAgent Windows service stops and starts.
Enabling Verbose Logging
- On the system running the affected AD Agent, navigate to the AD Agent install directory. By default, this is
C:\Program Files (x86)\Okta\Okta AD Agent. - Open the
OktaAgentService.exe.configfile with a text editor. - Change the value:
to<add key="VerboseLogging" value="False" /><add key="VerboseLogging" value="True" /> - Save the changes.
- Restart the AD Agent service (go to Services > right-click on the Okta AD Agent > Restart).
NOTE: Okta strongly recommends disabling verbose logging after troubleshooting is complete, as it can quickly generate several large files.
LDAP Agent
Log Retrieval
- On the system running the affected LDAP Agent, navigate to the logs directory in the LDAP Agent install directory.
- On Windows, this is normally found in
C:\Program Files\Okta\Okta LDAP Agent\logs. - On Linux, this is found in /opt/Okta/Okta LDAP Agent/logs.
- On Windows, this is normally found in
- The most recent log file is named Agent.log. Older log files will have a number appended to the filename (for example, Agent-1.log), with each successive number representing an older log file.
- The log files are limited to 20 MB and updated with new information. The files "roll over" as each new Agent.log file size limit is reached.
- The "pid.info" file contains the current PID for the Okta LDAP Agent.
- The "stdout.log" file contains the current Agent service status information, such as the type of crypto suites found and the number of working connections.
Enabling Debug Logging
- On the system running the affected LDAP Agent, navigate to the LDAP Agent configuration directory.
- On Windows, this is normally found in
C:\Program Files\Okta\Okta LDAP Agent\conf. - On Linux, this is found in
/opt/Okta/Okta LDAP Agent/conf.
- On Windows, this is normally found in
- Open the "logback.xml" file with a text editor.
- Change one or more of the following values:
<maxIndex>5</maxIndex>represents the maximum number of log files that can be written. When using Debug logging, it is recommended to increase this number to 20 to compensate for the additional logging.<logger name="com.okta.ldap_agent" level="INFO">represents the type of logging performed by the LDAP Agent. Change this value to<logger name="com.okta.ldap_agent" level="DEBUG">.
- Save the modified file.
- Restart the Okta LDAP Agent service.
IWA Agent
Log Retrieval
- The Okta IWA Agent does not create log files on its own. Instead, logs are generated by Microsoft Internet Information Service (IIS).
- NOTE: These logs will contain
DOMAIN\sAMAccountName. Redact as necessary.
-
- On the system running the affected IWA Agent, navigate to
C:\inetpub\logs\LogFiles\W3SVC1\. - IIS generates one file per day.
- On the system running the affected IWA Agent, navigate to
RADIUS Agent
Log Retrieval
- On the system running the affected RADIUS Agent, navigate to the Logs directory in the RADIUS Agent install directory. By default, this is C:\Program Files (x86)\Okta\Okta RADIUS Agent\current\logs.
- The
okta_radiusfile contains troubleshooting information most likely to be needed by Okta Support.
