This doc will guide you in changing Logging Modes from Errors Only, DEBUG and Info.
There are 2 way that you can change logging levels.
Health Center Log Change
ERROR |
DEBUG |
---|---|
There are times when troubleshooting and debugging where you may be asked to increase the logs being collected. Below is how you do this.
In this example, we will be increasing the number of logs collected for the Data Classification service. Note: Each service has its own config file that can be edited in and is generally in the same format.
3. Once you are in the edit view inside the config file, scroll down until you see the following key, <maxSizeRollBackups> within the "RollingFile " key. Note: The default value is 0 (zero). However, this means that only 1 log file will be generated, which is the default.
4. Depending on what type of issues you are encountering and trying to troubleshoot can help you determine how many log files you want to allow to be generated. For our example for Data Classification, we will increase this to 5 just to be safe. What this means is, a maximum of 5 logs files in of 30MB in size will be allowed to be generated.
5. Manually start and stop the services for these changes to take effect.
As of 8.2 File Access Manager no longer using the Log4Net logging system but rather NLog.
More information about NLog and its keys can be found here: https://nlog-project.org/documentation/v4.3.0/html/Properties_T_NLog_Targets_FileTarget.htm
Do not attempt to add keys to the NLog.config file unless directed by Engineering.
Note: Central Permission Collection - CPC 1 will be the example for the below steps.
To change the service's logging level...
These setting are also located in the NLog.config file.
maxArchiveFiles="10"
The default is currently set to 10 log files that will be kept.
archiveAboveSize="31457280"
This sets the size in bytes, this is approx. 31 MB.
The logs will eventually auto remove themselves from the Logs folder on their respective services after 15 days. This is can be changed from the below table and Row name.
select * from whiteops.system_configuration_value
where name like '%Log Files Expiration Days%'
This applies for previous versions to 8.2