简体   繁体   English

Azure 应用服务应用服务日志 blob 保留不起作用

[英]Azure App Service app service logs blob retention not working

Screenshot of Settings设置截图

I have configured my azure app service app service logs settings as above image attached.我已经配置了我的 azure 应用服务应用服务日志设置,如上图所示。

As expected the logs are stored in Azure Blob storage but it is not deleting the log files even after retention period is completed.正如预期的那样,日志存储在 Azure Blob 存储中,但即使在保留期结束后也不会删除日志文件。

Any solution will be helpful任何解决方案都会有所帮助

APPROACH-1 :方法一

Based on this MS Doc .基于此MS Doc It is possible with Azure blob storage lifecycle policy Azure blob 存储生命周期策略是可能的

  • Transition blobs from cool to hot immediately when they are accessed, to optimize for performance.访问 blob 时立即将它们从冷转换为热,以优化性能。
  • Transition blobs, blob versions, and blob snapshots to a cooler storage tier if these objects have not been accessed or modified for a period of time, to optimize for cost.如果在一段时间内未访问或修改这些对象,请将 blob、blob 版本和 blob 快照转换到较冷的存储层,以优化成本。 In this scenario, the lifecycle management policy can move objects from hot to cool, from hot to archive, or from cool to archive.在这种情况下,生命周期管理策略可以将对象从热移到冷、从热移到存档或从冷移到存档。
  • Delete blobs, blob versions, and blob snapshots at the end of their lifecycles.在生命周期结束时删除 Blob、Blob 版本和 Blob 快照。
  • Define rules to be run once per day at the storage account level.定义每天在存储帐户级别运行一次的规则。
  • Apply rules to containers or to a subset of blobs, using name prefixes or blob index tags as filters.将规则应用于容器或 Blob 的子集,使用名称前缀或Blob 索引标签作为过滤器。

APPROACH-2 : We can use Azure logic app to delete files older than X number of days from Azure Blob Storage .方法 2 :我们可以使用Azure 逻辑应用程序从 Azure Blob 存储中删除早于 X 天的文件。

For more information please refer this Microsoft Documentation: Blob rehydration from the archive tier有关更多信息,请参阅此 Microsoft 文档: 来自存档层的 Blob 再水化

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在 Azure WebApp 部署中设置应用服务日志的保留期 - Set Retention Period for App Service logs in Azure WebApp Deployment 将 Azure 应用服务的 stdout 和 stderr 日志存储到 Azure Blob 存储中 - Store stdout and stderr logs of Azure App Service into Azure Blob Storage Azure 应用服务监控日志大多不起作用 - Azure App Service Monitoring Logs mostly not working Azure 应用服务诊断 blob 未记录基于 nlog 的日志 - Azure app service diagnostic blob not logging nlog based logs 打开应用服务日志中的选项后,Azure WebJobs 日志是否应该在日志 Stream 和 Blob 存储中可见? - Should Azure WebJobs logs be visible in Log Stream & Blob Storage after turning on the options in App Service Logs? 为Azure App Service创建Blob容器 - Create blob container for Azure App Service 从 Azure 应用服务访问 Blob 存储 - Blob storage access from Azure App Service 找不到Azure应用服务诊断日志应用程序日志记录Blob存储URL 404 - Azure App Service Diagnostics Logs Application Logging Blob Storage URL Not Found 404 ASP.NET Core 应用程序日志未写入 Azure 应用服务中的 Blob - ASP.NET Core Application Logs Not Written To Blob in Azure App Service Azure App Service应用程序日志以提供永久可用性 - Azure App Service Application Logs for permanent availability
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM