Azure APIM : How to increase Azure Monitor Payload Limit beyond 8192

Amit-J 331 Reputation points
2022-10-19T15:54:55.007+00:00

Hi,

Since there is a limit of 8192 bytes to log payloads in Azure Monitor, what is the alternate solution to log complete payload ?
Is there a way to increase this number ? or do we have to handle it separately in api policies, by capturing payload via Jobject and sending it to storage ?

Please suggest.

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,118 questions
0 comments No comments
{count} votes

Accepted answer
  1. JananiRamesh-MSFT 27,176 Reputation points
    2022-10-19T21:13:07.347+00:00

    Hi @Amit-J Thanks for reaching out. No, 8192 is the hard coded max limit, which means it cannot be changed. Also, logging more data will introduce the risk of severe performance degradation.

    Please refer: https://learn.microsoft.com/en-us/azure/api-management/api-management-howto-app-insights#enable-application-insights-logging-for-your-api

    you can log events to Azure Event Hubs https://learn.microsoft.com/en-us/azure/api-management/api-management-howto-log-event-hubs. Using this, you can log any number of bytes and any kind of data that you need for future analysis.

    let me know incase of further queries, I would be happy to assist you.

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.