aghazi
Jun 21, 2017Nimbostratus
iRule F5 logging for Maintenance page redirects
I need to edit 3 iRules to add logging to match Apache for these attributes.
Example Format:X-Forwarded-For; EventTime; Request; HTTP Status Code; Referer; User-Agent; Request Time; Host
Would someone help me?
when HTTP_REQUEST {
if {
([active_members [LB::server pool]] < 1)
} then {
log local0. "Client on Maintenance Page: [IP::client_addr]"
HTTP::respond 200 content [ifile get portal_maintenance.html]
}
}