A family of Microsoft on-premises document management and storage systems.
Hi @Andriy Granovsky
This behavior is expected in SharePoint Server.
The “Number of days to keep log files” setting only determines how long logs are retained. It does not limit the volume of logs generated. The amount of logging primarily depends on the configured logging level and overall farm activity.
According to Configure diagnostic logging in SharePoint Server - SharePoint Server | Microsoft Learn, diagnostic logging can generate large amounts of data depending on configuration. Even with a 7‑day retention period, the WSS_Logging (ULS) folder can grow quickly if logging is set to Verbose/VerboseEx, or if the farm is producing a high volume of events.
To help prevent rapid growth, consider the following best practices:
-Restrict log disk usage: Configure a maximum size so SharePoint automatically deletes older logs once the limit is reached: Central Administration > Monitoring > Configure diagnostic logging.
-Review logging levels Use Medium, Warning, or Unexpected for normal operations. Enable Verbose only temporarily when troubleshooting.
-Move logs to a separate drive
I hope this information is helpful.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.