I have an Azure Function (Python) tied to an App Insights instance. The Function downloads large blobs from Azure Storage for processing. The BlobClient
makes numerous calls to the blob container as part of loading into memory.
A file of ~2GB results in an App Insights log that is truncated (the last message in the log should be ### File Successfully Processed ###
):
The Kusto query is:
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']
Is there a limit to App Insights log length for a single event?
Yes, there's a max length. Please find the answer here:
Azure Application Insight. Custom attribute length restriction