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?
Thanks
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.
Sign up to join this communityMicrosoft 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.