Is there a way to preserve the logs files for more than 90 days for SharePoint online and SharePoint on-premises and define specific site collection/s to have this extended logs?


1 Answer 1


Microsoft uses the Unified Logging System (ULS) in the SharePoint Online environment. Sometimes we receive requests to share these ULS logs with customers for troubleshooting and debugging scenarios. Microsoft does not provide copies of ULS logs or any access to ULS logs from SharePoint Online.

Ref: Information about ULS log access for SharePoint Online

In the Number of days to store log files box, type the number of days (1-366) that you want logs to be kept. After this time, logs will automatically be deleted.

Ref: Configure diagnostic logging in SharePoint Server

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.