Forum Discussion
Mark_62437
Nimbostratus
Dec 03, 2008Identifying specific Header and logging time they attach?
I have created the following iRule:
Keep in mind first kick at the cat.
when HTTP_REQUEST {
if { [HTTP::header] contains "True-Client-IP" }
log local0. "...
James_Quinby_46
Dec 08, 2008Historic F5 Account
You might try this:
when HTTP_REQUEST {
Log the start of a new HTTP request
set LogString "Client [IP::client_addr]:[TCP::client_port] -> [HTTP::host][HTTP::uri]"
log local0. "$LogString (request)"
}
I lifted this bit from a larger iRule
http://devcentral.f5.com/wiki/default.aspx/iRules/LogTcpAndHttpRequestResponseInfo.html
...that logs a ton of additional information. Log size can be concerning, especially if you have a lot of traffic. Why not log these entries off of the LTM completely, via syslog? There's some information on syslogging from within an iRule here:
http://devcentral.f5.com/wiki/default.aspx/iRules/log.html
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