ARR Helper not working with custom fields

I set up a custom field called c-port based on Server Variables to log client port information. When this custom field in present, ARR Helper ignores X-Forward-For header and log my ARR Server IP address, instead of the
content of this header.

My question is if this behavior is a bug or it's expected, because we are adding more fields to W3C log file and ARR Helper could expect only default columns/fields.

As a temporary solution, I set up my web server to log real client IP address adding another custom field based on X-Forward-For header, and disabled default
c-ip field. Isn't the best approuch, but it works very well!

Re: ARR Helper not working with custom fields

MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

Re: ARR Helper not working with custom fields

MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

Re: ARR Helper not working with custom fields

MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

Re: ARR Helper not working with custom fields

Maybe you didn't understand the main problem in this thread: the problem is to use ARR module to log real IP client, but if remove it, who will be responsible to perform this action??

My problem isn't logging client port, it works well in all cases, in any configuration. One more time: ARR module crashes if I add a custom field to IIS logs, and what I need to know, is if this behavior is expected or is a bug!

I'll add a log here to clarify:

ARR server: 10.20.10.10

WEB worker: 10.20.10.55
MY IP: 10.20.220.15

With ARR module installed and no custom fields, my web worker log in created like that (as expected):
-----------------------------------------------------------------------------------------------------------------------------

With ARR module installed and one custom fields, ARR stops to replace
c-ip field and log in created like that:
-----------------------------------------------------------------------------------------------------------------------------

Re: ARR Helper not working with custom fields

Try to add name the field c-port to CLIENT_PORT as suggested in
this article.

And as you mention in this line

Marcelo Petersen

One more information: when I have custom fields to be logged, IIS changes default log file name, appending "_x" to it (ex190904_x.log).

When you use a custom field in iis logging, "_x" will be appended to the file name to show that the log file contains a custom field.

You could get more detail about iis custom field logging from
this post.

MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.