Does anyone know of a way to either encode the fields in the iis logs when using advanced logging or change the format such that the cs-uri-stem cs-uri-query are both in double quotes?
The cs-uri-stem field is not enclosed in double quotes and sometimes has spaces in it. The other fields such as cs(User-Agent), cs(Cookie) are enclosed in double quotes. With the cs-uri-stem field containing spaces and not enclosed in double quotes, it is causing some problems with our parsing routines to know when the cs-uri-stem ends and the next field starts which is cs-uri-query.
The layout of our log is as follows:
date time s-sitename s-computername s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) cs(Cookie) cs(Referer) cs(Host) sc-status sc-win32-status sc-bytes cs-bytes TimeTakenMS CustomLogging
I did find on Jack Freelander's blog (http://blogs.iis.net/JackFree/) where he documented "We also expose control over the text that is used for delimiting log fields, for new-lines and you can even shut off writing log headers to disk. This allows you to produce a simple flat-file (comma-separated or whatever you choose) to easily import into Excel, for example."
Does anyone know how to change the formatting of the log file when using Advanced Logging?