Forum Discussion
Peter_Reilly
Nimbostratus
Feb 08, 2005how to log dropped sessions
I would like to be able to use an iRule to log whenever a tcp session is dropped due to it reaching the tcp timeout value specified in a profile. Is there a mechanism to do this within iRules?
rapmaster_c_127
Feb 11, 2005Historic F5 Account
Sure, just set a variable to record the URI in the request:
when CLIENT_ACCEPTED {
set prev_age 0
set req_uri "none"
}
when HTTP_REQUEST {
set prev_age [IP::stats age]
set req_uri [HTTP::uri]
}
when HTTP_RESPONSE {
set prev_age [IP::stats age]
}
when CLIENT_CLOSED {
if { [expr [IP::stats age] - $prev_age] > [IP::idle_timeout] } {
log "Client: [IP::remote_addr]:[TCP::remote_port] requesting $req_uri timed out"
}
}
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