idealisms/apache-log-reader — pull request #1 by gthb (2012-12-17 20:27:25+00:00)
Title: Support nginx upstream vars (comma escaping space)

When nginx is configured to include upstream vars (e.g. `upstream_http_x_some_backend_info`) in the access log, and one backend fails so nginx falls back to another, two values will be logged, separated by a comma and a space. If you neglected to surround the upstream var with double-quotes, then oops, you got two fields.

Handle this case by considering a field *not* terminated by a space if that space is immediately preceded by a comma. This is optional and off by default.