Forum Discussion
tungsten_112959
Apr 26, 2007Nimbostratus
Hi Adrian, some question
If I created 2 logger for logging two different virtual pools, how can I perform logging to 2 different files rather than logging them into the ltm log file?
below is what I have done, but only loggerA can be logged, can we also do the same to loggerB?
- I created 2 HTTP logger iRule with name "http_A_logger" and "http_B_logger"
- change the following in the /etc/syslog-ng/syslog-ng.conf file. How can we also do for loggerB which logs to /var/Blogger? Thanks in advance.
local0.info /var/log/Alogger
filter f_local0.info {
facility(local0) and level(info) and match("http_A_logger");
};
destination d_Alogger {
file("/var/log/Alogger" create_dirs(yes));
};
log {
source(local);
filter(f_local0.info);
destination(d_Alogger);
};
local0.* /var/log/ltm
filter f_local0 {
facility(local0) and level(info..emerg) and not match("http_A_logger");
};
destination d_ltm {
file("/var/log/ltm" create_dirs(yes));
};
log {
source(local);
filter(f_local0);
destination(d_ltm);
};