Share via

Api management log request payload truncated

Robin Sok 0 Reputation points
2025-10-24T08:05:44.1566667+00:00

Api management allow to log request and response payload with 8192 length.

User's image

So we received the payload more then the limitation, does Microsoft Azure does another backup log some where else?

 

Azure API Management
Azure API Management

An Azure service that provides a hybrid, multi-cloud management platform for APIs.


1 answer

Sort by: Most helpful
  1. Rakesh Mishra 9,340 Reputation points Microsoft External Staff Moderator
    2025-10-24T11:15:26.91+00:00

    Hi @Robin Sok ,

    Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.

    Azure API Management does have limits on the size of the request and response payloads it can log. You're facing an issue with Azure's API Management where your request payload is getting truncated due to the 8192-byte limit. If your payload exceeds this limit, it won't be fully captured.

    As an alternative you can log to Event Hubs. You can utilize the log-to-eventhub policy, which allows for a maximum message size of 200 KB. Messages exceeding this size will be truncated; however, this provides a higher approved limit than standard logging.

    Reference: How to log events to Azure Event Hubs in Azure API Management.

    Was this answer helpful?


Your answer

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