Forum Discussion
John_Lennon_457
Nimbostratus
Oct 07, 2010ProxyPass and common logging
I'm in the process of converting a few sites from other technologies to F5 LTM using ProxyPass v10 on TMOS 10.2. Currently each site relies on the Reverse Proxy logs to be collected for analysis and p...
JRahm
Admin
Oct 19, 2010Have you considered HSL (Click Here)? This logs on the wire to a pool defined locally on the LTM so you can have a log farm to handle the load in the event you lose a single server. Alternatively, you can create special log files if you have a particular string in the log message for syslog to key off of and send to alternate file. You could use the virtual name command to specific the appropriate virtual server in the log message from the iRule, then create your files in syslog as such (virtualserver1 as an example):
tmsh modify sys syslog include '"
filter f_local0 {
facility(local0) and not match(\": virtualserver1-\");
};
filter f_local0_virtualserver1 {
facility(local0) and match(\": virtualserver1-\");
};
destination d_virtualserver1 {
file(\"/var/log/virtualserver1\" create_dirs(yes));
};
log {
source(local);
filter(f_local0_virtualserver1);
destination(d_virtualserver1);
};
"'
tmsh save / sys config
tmsh restart sys service syslog-ng
Just in case the code gets garbled above, smp wrote a tech tip on custom syslog files and rotation: http://devcentral.f5.com/Tutorials/TechTips/tabid/63/articleType/ArticleView/articleId/1084377/Writing-to-and-rotating-custom-log-files.aspx Click Here
HTH....Jason
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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