Forum Discussion
Mathew_Loesch
Nimbostratus
Mar 03, 2015High Speed Logging event correlation
I have created a request-log profile in v11.4.x. I am looking to create/include a unique marker so I can correlate the request event with the corresponding response event. I currently have the clie...
Mathew_Loesch
Nimbostratus
Mar 03, 2015Do you have an example of what that iRule may look like? I am not certain if I can call the same profile in HTTP_REQUEST and HTTP_RESPONSE. Or do i have to create two different profiles, and call them in the appropriate event?? Thanks...
Brad_Parker
Cirrus
Mar 03, 2015You could try something like this, but I haven't tested it myself yet.
when HTTP_REQUEST {
set hsl [HSL::open -proto UDP -pool ]
set ID [md5 "[clock seconds][IP::client_addr][TCP::client_port]"]
HSL::send $hsl "$ID,[clock format [clock seconds] -gmt],[IP::client_addr],[TCP::client_port],[HTTP::request]"
}
when HTTP_RESPONSE {
HSL::send $hsl "$ID,[clock format [clock seconds] -gmt],[IP::client_addr],[TCP::client_port],[HTTP::status]"
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
