Commit 9dabb524 authored by Matt Pryor's avatar Matt Pryor
Browse files

Add request time to the access log for Tomcat and Nginx

parent b2778014
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@ http {
    default_type        application/octet-stream;

    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                      '$status $body_bytes_sent "$http_referer" '
                      '$status $body_bytes_sent [$request_time] "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for"';

    access_log  /var/log/nginx/access.log  main;
+1 −1
Original line number Diff line number Diff line
@@ -175,7 +175,7 @@
        -->
        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
               prefix="localhost_access_log" suffix=".txt"
               pattern="%a - %u %t &quot;%r&quot; %s %B &quot;%{Referer}i&quot; &quot;%{User-Agent}i&quot; &quot;%{X-Forwarded-For}i&quot;"
               pattern="%a - %u %t &quot;%r&quot; %s %B [%T] &quot;%{Referer}i&quot; &quot;%{User-Agent}i&quot; &quot;%{X-Forwarded-For}i&quot;"
               rotatable="false"
        />