How to increase the size of messages logged in App Insight?

Jeffrey Ng 26 Reputation points
2021-09-08T03:19:14.383+00:00

Hi

Currently in the Application Insight, the max size of the message details that i can log is 8kb, resulting in some info being cut-off.
Can i ask if the message limit can be increased to more than 8kb?

Appreciated.

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,783 questions
{count} vote

Accepted answer
  1. Monalla-MSFT 11,476 Reputation points
    2021-09-13T17:56:57.467+00:00

    @Jeffrey Ng - Thanks for reaching out.

    If you are using trackTrace, there is a message size limit of 32768 characters where as if you are using trackevent's custom property then you will have a limit of 8192.

    Can you provide what you are using here?

    Also Can you make sure you are using the Trace API because then you should be able to have a message length a lot longer that 8kb.

    See Docreference here.

    Also please take a look at this doc for more reference on Limit summary

    Update :

    You should still be able to use TrackTrace for a longer message limit.

    See this doc for more reference : api-custom-events-metrics

    "The size limit on message is much higher than the limit on properties. An advantage of TrackTrace is that you can put relatively long data in the message.
    For example, you can encode POST data there."

    Node.js TrackTrace
    See the below docs for more reference :

    1. nodejs
    2. ApplicationInsights-node.js

    Hope this helps.

    If the above response helped, please feel free to "Accept as Answer" so it can be beneficial to the community.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful