Acquia's Access Log File Format

Posted on: 2016-11-18 22:37:06

I needed to parse some logs and I wanted to know what Acquia's Log file format was. Here it is:

LogFormat "%{X-AH-Client-IP}i %l %u %t \"%r\" %>s %b \"%{Referer}i\"
\"%{User-agent}i\" vhost=%v host=%{Host}i hosting_site= pid=%P
request_time=%D forwarded_for=\"%{X-Forwarded-For}i\"
request_id=\"%{X-Request-Id}i\" "`

Here's a link to the LogFormat reference.

Key tidbits:

request_time is in microseconds. Not milliseconds. So divide that sucker by 1,000,000.

Also, request_id will correlate requests across different log files (e.g. drupal-watchdog-<date> and/or drupal-requests-<date>.