Options

Log all HTTP headers

Posted by tcp-me

I was working with someone today that needed their AX to log all HTTP request headers for security auditing purposes. They have their company employees using the AX as the gateway to get out to the Internet. Their IT staff wanted the AX to capture all HTTP request headers including any cookies being sent and most importantly, the URL people were requesting. Thanks to A10 support for this short and concise aFlex.


when HTTP_REQUEST {
set total_header [HTTP::header count]
log "total headers $total_header"
foreach hdr [HTTP::header names] {
log "hdr is $hdr value [HTTP::header $hdr]"
}
}

Note: This aFlex was bound to a wildcard VIP with promiscuous mode turned on.
Sign In or Register to comment.