Forum Discussion
lmwf1_55268
Nimbostratus
Feb 18, 2009create 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);
};"
- hoolio
Cirrostratus
For pre-9.4.2 you can use a config like this example: - lmwf1_55268
Nimbostratus
For v9.4.2 and newer, will this send all logs to remote server for all vips?
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