Configure SAS® Fraud Management web logging to record the elapsed time taken to complete web requests


By default, SAS web access logs do not record the elapsed time in milliseconds that it takes to complete each web request.

Because SAS Fraud Management uses Red Hat Enterprise Linux (RHEL) Apache servers to support web services, regular Apache LogFormat parameters support the %D parameter to append the time in milliseconds that it takes to complete each web request.

If you have deployed custom logging, then you might have considerations other than just adding %D. If you have considerations other than just adding %D, defer to your web logging experts. Refer to your SAS/RHEL/Apache version documentation for information about the LogFormat settings.

Instructions

Add %D to the httpd.conf format strings (like the example below, from a SAS Fraud Management test system). While the impact from this change should be negligible, SAS Technical Support still recommends thorough testing before deploying to production.

SAS Fraud Management Test System Example

  1. Edit ./confighome94/Lev1/Web/WebServer/conf/httpd.conf

    #

    # The following directives define some format nicknames for use with

    # a CustomLog directive (see below).

    #

    LogFormat "%h %l %u %t \"%r\" %>s %b %D \"%{Referer}i\" \"%{User-Agent}i\"" combined

    LogFormat "%h %l %u %t \"%r\" %>s %b %D" common

    <IfModule logio_module>

    # You need to enable mod_logio.c to use %I and %O

    LogFormat "%h %l %u %t \"%r\" %>s %b %D\"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio

    </IfModule>


  2. Stop and start your SAS or SAS Fraud Management Web servers:
    /sasvol01/confighome94/Lev1/Web/WebServer/bin/httpdctl <stop/start>

  3. View the changes in your /sasvol01/confighome94/Lev1/Web/WebServer/logs:
    • Before the change: access_2025-07-22-11.28.log entries end with the 7234 message length:
      10.10.10 - - [22/Jul/2025:11:47:09 -0400] "GET /SASLogon/themes/default/images/saslogo.svg HTTP/1.1" 200 7234

    • After the change: access_2025-07-31-14.12.log entries end with the milliseconds that it took to execute:
      10.10.10 - - [31/Jul/2025:14:17:34 -0400] "GET /SASLogon/themes/default/images/saslogo.svg HTTP/1.1" 200 7234 15908