Closed maidentaiwan closed 4 years ago
Thanks for making such a helpful parser!!
I'm not exactly sure which variable you're using as the 3rd field, but assuming it is %u
, it will indeed cause such issue. I haven't used Apache in half a decade maybe now, so I'm unaware if this was changed or not. PRs are welcome if so.
Again, assuming you're talking about %u
, if the value is always enclosed by double quotes, you can alternatively use "%{XUser}i"
instead, which will result in a HeaderXUser
property in the result object. Not ideal, but gets things working if you don't care about the correctness of the format string.
log-parser can't handle Apache log entries where the third field is
""
rather than a dash. I see these log entries every so often.88.99.141.3 - "" [18/Oct/2017:16:56:46 -0400] "GET / HTTP/1.1" ...
Trace: