From a80cb815fff0b625718550a2f19a0be08c1af6a1 Mon Sep 17 00:00:00 2001 From: Morgan Fainberg Date: Thu, 12 Mar 2015 17:55:51 -0700 Subject: [PATCH] Add response time to keystone access log Add the response time to keystone's access log for each request. This will be the last element in the log-line and will be represented in microseconds. Change-Id: I19204369af5cdf06df2237550c350dfb3ffc995d --- files/apache-keystone.template | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/files/apache-keystone.template b/files/apache-keystone.template index 1d20af7f90..0b914e2b8f 100644 --- a/files/apache-keystone.template +++ b/files/apache-keystone.template @@ -1,5 +1,6 @@ Listen %PUBLICPORT% Listen %ADMINPORT% +LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\" %D(us)" keystone_combined WSGIDaemonProcess keystone-public processes=5 threads=1 user=%USER% display-name=%{GROUP} %VIRTUALENV% @@ -11,7 +12,7 @@ Listen %ADMINPORT% ErrorLogFormat "%{cu}t %M" ErrorLog /var/log/%APACHE_NAME%/keystone.log - CustomLog /var/log/%APACHE_NAME%/keystone_access.log combined + CustomLog /var/log/%APACHE_NAME%/keystone_access.log keystone_combined %SSLENGINE% %SSLCERTFILE% %SSLKEYFILE% @@ -27,7 +28,7 @@ Listen %ADMINPORT% ErrorLogFormat "%{cu}t %M" ErrorLog /var/log/%APACHE_NAME%/keystone.log - CustomLog /var/log/%APACHE_NAME%/keystone_access.log combined + CustomLog /var/log/%APACHE_NAME%/keystone_access.log keystone_combined %SSLENGINE% %SSLCERTFILE% %SSLKEYFILE%