Performance Logging iRule (Rule_http_log)
Problem this snippet solves: Here's a logging iRule. You'll need a HSL syslog pool to log too. Various bits gathered from other posts on DevCentral. Sharing in case there is interest. Make sure you...
Updated May 10, 2022
Version 4.0TimRiker
Cirrocumulus
Joined October 03, 2011
TimRiker
Nov 08, 2018Cirrocumulus
Thanks for the suggestions! I renamed total_time to http_time as that's what it represents. I've also added logging of some relevant headers from both the request (req-) and response (res-). We add a few more to that list that are relevant inside our networks.
I updated the iRule here with my changes.
I added logging the co (country) of the upstream request using the f5 whereis IP geo tables.