dgsudheer By default, site diagnostic logs are never deleted. Setting the option "Retention Period (Days)" will delete logs older than the specified number of days. Nonetheless, please reach us out through a Microsoft Support case if you are facing any unexpected constraints with the configuration.
QuangV370 Thank you for your interest on the article! While I have not personally published a Tech Community article on the topic, you may still find useful resources for integrating Application Insights and Azure App Service at the following pages:
Web App Performance Root Cause Analysis with Application Insights - Microsoft Community Hub
Enable application monitoring in Azure App Service for .NET, Node.js, Python, and Java applications - Azure Monitor - Azure Monitor | Microsoft Learn