lmwf1_55268
Feb 18, 2009Nimbostratus
create multiple log files for multiple web servers
How do you use irules to create multiple log files for multiple web servers?
For example, /var/log/ltm_web1, /var/log/ltm_web4, /var/log/ltm_web3, /var/log/ltm_web4
To make it a bit more fun, the log files will be on a remote unix server.
I have been doing a lot of researches, but not sure, and wonder if anyone has tried similar?
Below are what I came across. Thanks!
send_log_to_remote
when CLIENT_ACCEPTED {
log 10.10.1.5 local0.info "Client Connected, IP: [IP::client_addr]"
}
******************************************************
syslog include "
destination remote_server {
udp(\"10.4.0.1\" port (514));
udp(\"10.5.0.1\" port (514));
};
local0.* /var/log/ltm
filter f_local0 {
facility(local0) and level(debug..emerg);
};
filter f_no_audit {
not match(\"AUDIT\");
};
destination d_ltm {
file(\"/var/log/ltm\" create_dirs(yes));
};
log {
source(local);
filter(f_local0);
filter(f_no_audit);
destination(d_ltm);
destination(remote_server);
};"