[Bug 156] New: rewrite rule not working on Linux
https://bugzilla.balabit.com/show_bug.cgi?id=156 Summary: rewrite rule not working on Linux Product: syslog-ng Version: 3.3.x Platform: Other OS/Version: Linux Status: NEW Severity: major Priority: unspecified Component: syslog-ng AssignedTo: bazsi@balabit.hu ReportedBy: ne24@georgetown.edu Type of the Report: bug Estimated Hours: 0.0 Hi, I have syslog-ng 3.3.3 running Red Hat Enterprise Linux Server release 6.2 (Santiago). I compiled with the following flags. ./configure --prefix=/usr/local --enable-spoof-source --enable-pcre --enable-ssl \ --enable-debug I have the following rewrite rule: rewrite n_dst_router { subst("^(%(?:ASA|PIX|FWSM)\-\d\-\d{6}):", "", value("MESSAGE"), type("pcre"), flags("global")); }; But it is not working. The line below minus the IP addresses shows that it is not replacing the %FWSM-6-305011 with a blank. Jan 7 15:59:06 HOSTNAME-REMOVED %FWSM-6-305011: Built dynamic tcp translation from GRT:IP-ADDRESS-REMOVED/53328 to BACKBONE-VRF:IP-ADDRESS-REMOVED/29361 I will also attach my whole syslog-ng.conf file so that you would see the whole setup. Here is the output of the debug output and as you can see, it looks like it is doing what it is supposed to, but it does not write it to the file with the change. Incoming log entry; line='<163>%FWSM-3-710003: udp access denied by ACL from IP-ADDRESS-REMOVED/35390 to BACKBONE-VRF:IP-ADDRESS-REMOVED/46897\x0a' Rewrite expression evaluation result; value='MESSAGE', new_value='udp access denied by ACL from IP-ADDRESS-REMOVED/35390 to BACKBONE-VRF:IP-ADDRESS-REMOVED/46897' I searched the bug reports but could not find anything related to this issue. I would appreciate it your help on this. Thank you Nadim El-Khoury -- Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugzilla.balabit.com/show_bug.cgi?id=156 --- Comment #1 from Balazs Scheidler <bazsi@balabit.hu> 2012-01-09 11:58:06 --- does perhaps this patch fix this? Author: Balazs Scheidler <bazsi@balabit.hu> 2011-11-25 12:38:40 Committer: Balazs Scheidler <bazsi@balabit.hu> 2011-11-25 12:38:40 Parent: e495996c1e4eef0a79f4cf49b5252098d7a00e10 (LogMessage: reorganize nv_table_add_value() call-sites for readability) Child: a9eefd946f24ae7630f27fad8f2add4efb751d90 (logproto: Fix compilation on systems without IOV_MAX.) Branches: master, remotes/github/master, remotes/origin/master Follows: v3.3.3 Precedes: [logrewrite] Repair logrewrite *_clone and *_subst_clone functions (fixes: #7686) Repair rewrite clone functions because we did not clone $MACRO id and conditions. Before this patch if we used rewrite in config file and use example PIPE source we rewrited $MESSAGE macro instead of macro in config file because the $MESSAGE macro was the default macro. Signed-off-by: Fried Zoltan <deirf@balabit.hu> Signed-off-by: Balazs Scheidler <bazsi@balabit.hu> -- Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugzilla.balabit.com/show_bug.cgi?id=156 Gergely Nagy <algernon@balabit.hu> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |algernon@balabit.hu Resolution| |FIXED Status|NEW |RESOLVED --- Comment #2 from Gergely Nagy <algernon@balabit.hu> 2012-04-20 13:53:16 --- This issue is fixed in 3.3.4 (and the latest 3.3.5 too). -- Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
participants (1)
-
bugzilla@bugzilla.balabit.com