Avoid error log for payloads over 102,400 bytes request/response payload

akhilas@secful.com 20 Reputation points
2024-01-01T04:22:22.51+00:00

We enable the error logging in APIM.But we need to avoid error log for payloads over 102,400 bytes request/response payload.is it possible for dynamically restrict logging?

User's image

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

Accepted answer
  1. MuthuKumaranMurugaachari-MSFT 22,441 Reputation points Moderator
    2024-01-02T16:21:47.4133333+00:00

    ******@secful.com Thanks for posting your question in Microsoft Q&A. You can specify Number of payload bytes to log to a value (up to 8192) other than 0 and this can be set individually for front end, and backend request/response. Check out doc: Diagnostics logs settings reference: API Management for more info.

    User's image

    However, the limit is for the initial bytes to log and not possible to avoid error log entirely. If you wish this feature, please submit feedback via https://aka.ms/apimwish and others with similar interests can upvote your idea. This will help our product team prioritize the features.

    I hope this helps and let me know if any questions.


    If you found the answer to your question helpful, please take a moment to mark it as Yes for others to benefit from your experience. Or simply add a comment tagging me and would be happy to answer your questions.

    1 person found this answer helpful.

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.