Forum Discussion
JCMATTOS_41723
Nimbostratus
Jan 07, 2010Syslog include match granularity?
We currently use 2 syslog remote servers and would like to limit the amount of log traffic to our servers. More specifically, we only want to see "Pool member" monitor up/down status messages. I tried using the b syslog include script but it doesn't seem to be working as expected. Any help is appreciated? Thx!
b syslog include '"destination d_loghost { udp(\"172.22.X.X\" port(514));udp(\"172.24.X.X\" port(514));};filter f_pool_member { match(\"Pool member\");};filter f_jc_not_6 { not facility(local6);};log { source(local); filter(f_jc_not_6); destination(d_loghost);};\"'
- hoolio
Cirrostratus
Hi JC,syslog include " destination d_loghost { udp(\"172.22.X.X\" port(514)); udp(\"172.24.X.X\" port(514)); }; filter f_pool_member { match(\"Pool member\"); }; filter f_jc_not_6 { not facility(local6); }; log { source(local); filter(f_pool_member); filter(f_jc_not_6); destination(d_loghost); }; "
- JCMATTOS_41723
Nimbostratus
Strangely enough the symptoms we are seeing are other misc log traffic not just "Pool member" related log messages on our 2 remote syslog servers. Yes we tried clearing it, restarting the syslog-ng services and still same results. What is the major difference between using my original script and creating a new one syslog.test.inc? Will this cause any undesired issues or impact with the LTM system itself? - hoolio
Cirrostratus
I wasn't sure whether the problem was with syntax or function, so I removed some potential syntax problems (removed the backslash which was escaping the closing double quote, removed the single quotes). I also added both the f_pool_member and f_jc_not_6 filters to the log definition. These would be logically AND'd together. If you only want to send the Pool Member logs to the remote syslog servers, you could remove the f_jc_not_6 filter from the log definition.
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