微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Azure Application Insights是否具有最大日志长度?

如何解决Azure Application Insights是否具有最大日志长度?

我有一个与App Insights实例绑定的Azure函数(Python)。该功能从Azure存储下载较大的Blob以进行处理。 BlobClient会对blob容器进行大量调用,这是加载到内存中的一部分。

约2GB的文件会导致App Insights日志被截断(日志中的最后一条消息应为### File Successfully Processed ###

enter image description here

Kusto查询为:

union traces
| union exceptions
| where timestamp > ago(30d)
| where operation_Id == 'bigGUID'
| where customDimensions['InvocationId'] == 'bigGUID2'
| order by timestamp asc
| project timestamp,message = iff(message != '',message,iff(innermostMessage != '',innermostMessage,customDimensions.['prop__{OriginalFormat}'])),logLevel = customDimensions.['LogLevel']

单个事件的App Insights日志长度是否有限制?

解决方法

是的,有最大长度。 请在这里找到答案:

Azure Application Insight. Custom attribute length restriction

消息的最大允许限制为32768。对于属性集合中的项目,值的最大限制为8192。
参考:https://github.com/microsoft/ApplicationInsights-Home/blob/master/EndpointSpecs/Schemas/Bond/MessageData.bond

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。