[英]Azure App Service app service logs blob retention not working
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.