Writing to and rotating custom log files
Sometimes I need to log information from iRules to debug something. So I add a simple log statement, like this:
when HTTP_REQUEST {
if { [HTTP::uri] equals "/secure" } {
log local0. "[IP:...
Published May 27, 2010
Version 1.0smp_86112
Cirrostratus
Joined November 14, 2006
smp_86112
Cirrostratus
Joined November 14, 2006
bmohanak_276891
Nov 10, 2016Cirrus
SVS,
I had to write a simple iRule and log Client IP address which is hitting one particular VIP(LDAP) and to a separate log file and I am running 11.6.0 version.
Could you please tell me how my iRule should look like for the custom log file to work and how should that reflect in the syslog-ng file.
when CLIENT_ACCEPTED { log local0. "Client IP address:{IP:client_addr]" } }
Thanks Balaji