Support for Advanced Logging logformat IIS #261
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I use the Advanced Logging module for IIS because i want to log the X-forward header in the IIS-weblog.
Our webservers are behind a Haproxy load-balancer.
Unfortunately, the log-format differs:
Regular W3C-IIS log:
Software: Microsoft Internet Information Services 7.5
Version: 1.0
Date: 2014-04-08 08:48:17
Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port
cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status
time-taken
2014-04-08 11:49:08 10.123.45.67 GET /images/elements/jquery.colorbox.js -
443 - 192.168.1.1
Mozilla/5.0+(Macintosh;+Intel+Mac+OS+X+10.9;+rv:28.0)+Gecko/20100101+Firefo
x/28.0 200 0 0 44
Advanced Logging:
Software: IIS Advanced Logging Module
Version: 1.0
Start-Date: 2014-04-10 12:40:24.191
Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port
cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status
time-taken
2014-04-10 12:40:24.190 - GET /Common/shop/shoppingcartAJAX.asp - 80 -
192.168.1.1 "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36" 200 0 0 2036
The user-agent field doesn't use the '+' delimiter and the 'time' field adds milliseconds.
Is it possible to add support for Advanced Logging?