Apex One enables debug logging at an error level by default.
- On the Apex One server, the logs created by this process will be created in the \Program Files (x86)\Trend Micro\OfficeScan\PCCSRV\Log folder.
- On the Apex One endpoint, the logs created by this process will be created in the \Program Files (x86)\Trend Micro\OfficeScan Client\Temp\LogServer\Log folder.
To enable Debug level logging on the Apex One endpoint:
-
Copy the contents of the C:\Program Files (x86)\Trend Micro\OfficeScan Client\Temp\LogServer\ (upgrade) or C:\Program Files (x86)\Trend Micro\Security Agent\Temp\LogServer\ (fresh install) excluding the Log folder, to a new folder on the machine.
For example: to C:\temp\LogServer
The files can also be found on the Apex One Server at \Program Files (x86)\Trend Micro\Apex One\PCCSRV\Private\LogServer folder.
- Edit the ofcdebug.ini file now located in the new folder you copied to in the previous step.
For example: C:\temp\LogServer\ofcdebug.ini
- Change DebugLog=.\Log\ofcdebug.log to "DebugLog=.\ofcdebug.log". (if you create a Log sub-folder in the folder where you moved the files to store the logs instead, this step can be skipped).
- Change debugLevel_new=E to "debugLevel_new=D".
-
Change ForceStopOtherLogserver=0 to "ForceStopOtherLogserver=1".
- If larger logs are desired, you can edit the debugSplitSize line. The default is 10 MB before splitting and zipping the old file.
- By default, DebugMaxSplit=100, this limits the total number of split logs to 100 files.
- Save the file.
-
Run LogServer.exe as Admin.
- You will now see the ofcdebug.log file created in the same folder.
- When the file rolls-over, it will compress the old file with a .7z and start a new ofcdebug.log.
- Reproduce the issue.
- Close the LogServer.exe window to stop the debug log.
- Delete the files copied from Step 1, without deleting any of the log or 7z files.
- Collect all files starting with ofcdebug.log (including those ended in .7z) to analyze from either the same folder as Logserver.exe or the Log sub-folder (depending on the configuration chosen on step 2a).
To enable Debug level logging on the Apex One Server:
- Copy the contents of the \Program Files (x86)\Trend Micro\OfficeScan\PCCSRV\Private\LogServer or \Program Files (x86)\Trend Micro\Apex One\PCCSRV\Private\LogServer folder (depends on whether the server was an upgrade from OfficeScan or an Apex One fresh install) to a new folder on the machine.
For example: to C:\temp\LogServer
- Edit the ofcdebug.ini file now located in the new folder you copied to in the previous step.
For example: C:\temp\LogServer\ofcdebug.ini
- Change DebugLog= C:\Program Files (x86)\Trend Micro\OfficeScan\PCCSRV\Log\ofcdebug.log to "DebugLog=.\ofcdebug.log".
- Change debugLevel_new=I to "debugLevel_new=D".
- Change ForceStopOtherLogserver=0 to "ForceStopOtherLogserver=1".
- If larger logs are desired, you can edit the debugSplitSize line. Default is 10 MB before splitting and zipping the old file.
- By default DebugMaxSplit=500, this limits the total number of split logs to 500 files.
- Save the file.
- Run LogServer.exe as Admin.
- You will now see the ofcdebug.log file created in the same folder.
- When the file rolls-over, it will compress the old file with a .7z and start a new ofcdebug.log.
- Reproduce the issue.
- Close the LogServer.exe window to stop the debug log.
- Delete the files copied from \Program Files (x86)\Trend Micro\OfficeScan\PCCSRV\Private\LogServer.
- Collect all files starting with ofcdebug.log (including those ended in .7z) to analyze or provide to Trend Micro Technical Support.
The ofcdebug.log can consume large disk space under \Trend Micro\Apex One\PCCSRV\Log\. If this occurs, check the debug level was set to "Debug".