<-
Apache > HTTP Server > Documentation > Version 2.2 > Modules

Apache Module mod_smf

Description:Record SMF entries for HTTP requests
Status:Extension
Module Identifier:smf_module
Source File:mod_smf.c

Summary

This module provides support for logging HTTP request/response details via z/OS SMF. .

Directives

Topics

top

Record Format

The Type 103 subtype 14 record format is variable length, with some fields stored in fixed positions and others concatenated in a variable length buffer. Fields with an "_len" suffix below are stored end-to-end in the final variable length buffer field.

PID|METHOD_LENGTH|DOMAIN_LENGTH|URI_LENGTH|RIP_LENGTH|CPU_TIME|ELAPSED_TIME|variable-length-buffer[METHOD|DOMAIN|URL|CLIENT_IP]

field idfield descriptionlengthnotes
PID Integer, process ID of unix process space handling the request4
METHOD_LENGTHInteger, length of the HTTP request method4
DOMAIN_LENGTHInteger, length of the HTTP Host: header4
URL_LENGTHInteger, length of the HTTP request URL 4
RIP_LENGTHInteger, length of the client IP address4
CPU_TIMEString, accumulated CPU time in seconds as measured by the clock() routine8
ELAPSED_TIME Integer (long long), elapsed request time in milliseconds8
METHODString, HTTP request method$METHOD_LENGTH
DOMAINString, HTTP Request domain$DOMAIN_LENGTH
URLString, HTTP Request URL$URL_LENGTH
CLIENTIPString, Remote client IP address$RIP_LENGTH
VERSIONInteger, Field added by PI83350 with value of 2. It can be found by adding the preceding fields.4
JOBNAMEchar[8] (not null terminated), processes job name8Added in version 2
JOBIDchar[8] (not null terminted), processes job id (STC id)8Added in version 2
ASIDchar[2] (not null terminted), ASID 2Added in version 3
top

SMFLogDebug Directive

Description:Enables debugging
Syntax:SMFLogDebug ON|OFF
Default:OFF
Context:directory
Status:Extension
Module:mod_smf
Compatibility:Directive and functionality not available on z/OS until IBM HTTP Server 8.5.5.0

This directive enables more debugging for this module.

top

SMFRecord Directive

Description:Enables SMF recording of per-request details
Syntax:SMFRecord ON|OFF
Default:OFF
Context:directory
Status:Extension
Module:mod_smf
Compatibility:Directive and functionality not available on z/OS until IBM HTTP Server 8.5.5.0

This directive configures the enclosing location to record SMF records for each access.