Event type
Apache Forensic Log
Detailed request/response logging for security analysis
Apache HTTP Server forensic logs from mod_log_forensic, providing detailed request/response logging with unique request IDs for security analysis and debugging. Forensic logs contain two log lines per request (before and after processing) with strict formatting.
Overview
What this event covers
Apache forensic logs from mod_log_forensic module provide detailed request and response logging with unique request IDs. Each request generates two log entries: one before processing (marked with '+') and one after processing (marked with '-'), enabling correlation and security analysis.
When generated
- ›When mod_log_forensic module is enabled in Apache configuration
- ›For every HTTP request processed by the server
- ›Before and after request processing for debugging and security analysis
Security relevance
HighCompliance
Frequency notes
Forensic logs generate two entries per request (before and after processing), effectively doubling the log volume compared to standard access logs. Typically enabled for security-sensitive environments or during troubleshooting. Frequency matches HTTP request patterns with higher volume during business hours.
Resources
Docs and tools
Generation
Configuration
- Base frequency
- 150 events/hour
- Time patterns
- business_hours night_hours weekend
- Business hours
- 2.5x
- Night hours
- 0.5x
- Weekend
- 0.4x
Schema
Field definitions
Field reference for this event type — types, requirements, examples, and allowed values.
Request ID
Unique identifier for correlating request/response pairs
Source: random_hex(16)
Hexadecimal string (16 characters)a1b2c3d4e5f6g7h8Client IP
IP address of the client making the request
Source: random_private_ip()
IPv4 address192.168.1.100Timestamp
Timestamp when the request was logged
Source: now() | format_datetime('%Y-%m-%d %H:%M:%S')
YYYY-MM-DD HH:MM:SS2025-01-15 14:23:45HTTP Method
HTTP request method
GET-
GET -
POST -
PUT -
DELETE -
HEAD -
OPTIONS
Request URI
Requested URI path
Source: random_choice of common paths
/api/usersHTTP Version
HTTP protocol version
HTTP/1.1-
HTTP/1.1 -
HTTP/2.0
Status Code
HTTP response status code
Source: random_choice of common status codes
200Response Size
Size of response in bytes
Source: random_int(0, 500000)
12345User Agent
Client user agent string
Source: random_choice of common user agents
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36Server IP
IP address of the server handling the request
Source: random_private_ip()
IPv4 address10.0.0.1Server Port
Port number the server is listening on
443-
80 -
443 -
8080 -
8443