Forum Discussion
Simon_83666
Nimbostratus
Aug 11, 2008Separate log files per virtual/pool/node
someone might have raised this before but I haven't been able to find a definite answer.
We're using Bigip LTM V9.3.1 to replace some of our reverse proxy / apache servers, and by default LTM logs everything to /var/log/ltm when using local0 facility. Is there a way, to create separate log files per virtual server or even per pool/node ?
This can be easily done in apache but I just haven't seen any document on how to do this on Big-IP.
any help is appreciated.
Simon
- Nicolas_Menant
Employee
Hi, - Simon_83666
Nimbostratus
Hi, - hoolio
Cirrostratus
There are some syslog-ng examples as well as links to the syslog-ng manual in this Codeshare example:local0. Filters local0.* /var/log/ltm filter f_local0 { facility(local0) and level(info..emerg); }; Filter for local0 VIP1 messages filter f_local0_vip1 { facility(local0) and level(info..emerg) and match("vip1"); }; Filter for local0 VIP2 messages filter f_local0_vip2 { facility(local0) and level(info..emerg) and match("vip2"); }; Filter for local0 VIP3 messages filter f_local0_vip3 { facility(local0) and level(info..emerg) and match("vip3"); }; local0. Destinations Default LTM log file destination d_ltm { file("/var/log/ltm" create_dirs(yes)); }; LTM log file for VIP1 destination d_vip1 { file("/var/log/ltm_vip1" create_dirs(yes)); }; LTM log file for VIP2 destination d_vip2 { file("/var/log/ltm_vip2" create_dirs(yes)); }; LTM log file for VIP3 destination d_vip3 { file("/var/log/ltm_vip3" create_dirs(yes)); }; local0. Log statements Default LTM log statement log { source(local); filter(f_local0); destination(d_ltm); }; VIP1 log statement log { source(local); filter(f_local0_vip1); destination(d_vip1); }; VIP2 log statement log { source(local); filter(f_local0_vip2); destination(d_vip2); }; VIP3 log statement log { source(local); filter(f_local0_vip3); destination(d_vip3); };
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