简体   繁体   中英

Can I increase the size of the column "Statement" in Azure Log Analytics

I have a KLOG statement used to extract some data from Azure Log Analytics. My problem is related to the fact that Azure Log Analytics seems to truncate the SQL statements longer than 4000 characters. For the audited server, I have more queries written by the users longer than 4000 characters. Can I increase the size of the column "Statement" somehow?

Thank you

在此处输入图像描述

Can I increase the size of the column "Statement" somehow?

Azure has a limitation of collecting log messages size.

If you want to add a custom property message with large no of length you can use the trackTrace . It has the capacity to have max length up to 8192 characters.

# it will add more than 4000 character in AI Logs
 telemetryClient.TrackTrace(<telemetry with more than 4000 character >);

The highest max allowed message limit is 32768 characters for items in the property collection have limit of 8192 . (Max key length 150 value length 8192 characters)

Refer MS-DOC for length limits of Application Insights Data model with respective to the type of telemetry.

Reference

  • Follow the Steps given by @cijothomas to add large length of message (more than 8K) to application Insights

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM