[syslog-ng] [Bug 256] rewrite + subst make syslog-ng crash

bugzilla at bugzilla.balabit.com bugzilla at bugzilla.balabit.com
Wed Oct 23 13:06:30 CEST 2013


https://bugzilla.balabit.com/show_bug.cgi?id=256





--- Comment #1 from Gergely Nagy <algernon at balabit.hu>  2013-10-23 13:06:31 ---
Managed to reproduce this, with the following config:

@version: 3.4

source s_main {
        unix-stream("var/input.sock");
};

rewrite r_services {
  subst("postfix/.*", "postfix", value("PROGRAM"), flags("global"));
  subst("nagios.*", "nagios", value("PROGRAM"), flags("global"));
  subst("jftpgw", "ftp-proxy", value("PROGRAM"), flags("global"));
  subst("ftp-child", "ftp-proxy", value("PROGRAM"), flags("global"));
};

destination d_null {
        file("/tmp/null.log");
};

destination d_blah {
        file("/tmp/blah.log");
};

log {
        source(s_main);
        rewrite(r_services);
        destination(d_null);
        flags(final);
};

log {
        source(s_main);
        destination(d_blah);
};


Without the second log{} block, the crash does not happen.


-- 
Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the syslog-ng mailing list