Cant write more than 4096 bytes into custom IIS log field

前端 未结 1 397
再見小時候
再見小時候 2021-01-26 01:06

According to this documentation you can configure IIS 10 on Windows Server 2016 to write custom fields as long as \"The total amount of data added in custom fields cannot ex

相关标签:
1条回答
  • 2021-01-26 01:53

    Having done extensive research into this now, the only way I have found to get all the cookies logged to the standard IIS log files when they are < 4k is to write a custom HttpModule that:

    1. hooks into Begin_Request
    2. reads the raw cookies string from the Request Headers
    3. splits it into chunks < 4k (preserving entire cookies as whole items, name and value)
    4. write the chunks into custom request headers
    5. configure IIS with a bunch of new custom fields to drop the new request headers into the iis logs
    0 讨论(0)
提交回复
热议问题