Forum Discussion
Issue Using Multiple Filters with Syslog-ng
I can only get authpriv messages to send to my syslog server. When I try using multiple filters it breaks things & even the authpriv doesn't send. I tried adding one filter to my include statement to troubleshoot and when I add the user filter alone I can only get messages when the F5 is rebooted by root vias SSH. My goal is to have the F5 send only logins, logouts & config/command updates (both CLI & SH) to my syslog server. I read all the documents but cannot get both filters to work. The F5 accepts them but doesn't send the logs. Could this be a bug? Am I configuring things wrong? Here's my config...
- James_TaylorNimbostratus
You may have already tried this, but in may documents for filters in syslog-ng that appear on devcentral, you need to remove and re-add any syslog remote server before the filters are to take effect. Please see the impact of the procedure below.
Removing the currently defined remote syslog servers
You must remove the current defined remote syslog servers before you configure the include statement with the filter rule and destination server. To do so, perform the following procedure:
Impact of procedure: Log messages will not be sent to the currently defined remote syslog servers until the remote syslog servers are re-added in the following procedure.
- Log in to tmsh by typing the following command:
- tmsh
- To list any currently defined remote syslog servers, if configured, type the following command:
- list /sys syslog remote-servers
- The following is an example of the command output on a BIG-IP system that is configured with a remote syslog server at IP address x.x.x.x:
- sys syslog {
- remote-servers {
- host x.x.x.x
- }
- }
- Take note of any currently defined remote syslog server information; you will need it in the following procedure.
- To remove the currently defined remote syslog servers, type the following command:
- modify /sys syslog remote-servers none
- Save the change by typing the following command:
- save /sys config partitions all
Recent Discussions
Related Content
* 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