Monitor SharePoint efficiency (3)-enable tracking log, sharepoint
Zookeeper
SharePoint is an extremely complex system that contains many sub-modules. If each sub-module calls its own logs, the log growth will be very fast, it will occupy a large amount of disk space.
Therefore, when the system is running normally, you do not need to enable all the logs. You only need to output detailed tracking logs when a specific module has a problem.
Go to the SharePoint management center and find "configuration diagnosis log ":
Here, SharePoint lists all sub-modules that can set the log level:
Expand the sub-module and you can see the subdivided functions. Take the SharePoint Server as an example. The functions are listed below. By default, all the functions are information-level logs.
Select the target module and adjust the log level below:
The first is to write logs to Windows system logs, and the second is to write logs to SharePoint logs.
From top to bottom, the order is from the most urgent to the least urgent. Therefore, to obtain all the logs, You must select the bottom.
When detailed tracing logs are enabled, the log will increase rapidly. To protect the system, SharePoint provides some protection measures.
First, ensure that the Windows system logs are not too large. If the following options are selected, repeated events are automatically obtained and compressed.
For SharePoint logs, you can set the retention days. The default value is 14 days. If the log size is still large within 14 days, you can limit the maximum space occupied by the log. After the log size is exceeded, the previous log is automatically cleared.
After tracing log is enabled, you can find more information to diagnose SharePoint problems. However, you must remember that after the diagnosis process is complete, you must change the settings back to avoid a large number of logs.