Is it possible to limit the size of the cs_cookie value in IIS logs?

David Vargas 0 Reputation points
2024-10-02T16:08:40.68+00:00

Is it possible to limit the size of the cs_cookie or any other OOB field in IIS logs? I noticed you can set the field size when you define a custom one but haven't found a way of doing it for one of the default fields

Windows development | Internet Information Services
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2024-10-03T08:41:51.6766667+00:00

    Hi @David Vargas,

    Is it possible to limit the size of the cs_cookie or any other OOB field in IIS logs?

    As far as I know, the default field record in the log cannot be configured to limit its size, and the cookie size is 4096 bytes.

    I'm not sure why you would need to limit its length, but if you need it to record more cookie data, you can try using a custom field to record it. But it also has a length limit of 65536 bytes. Just refer to this doc for more details: Custom Fields in a Log File for a Site <customFields> - Attributes.

    Best regards,

    Xudong Peng


    If the answer is the right solution, please click "Accept Answer" and kindly upvote. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


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.