[Bug 81] New: feature request: nested source statements
https://bugzilla.balabit.com/show_bug.cgi?id=81 Summary: feature request: nested source statements Product: syslog-ng Version: 3.0.x Platform: Other OS/Version: FreeBSD Status: NEW Severity: normal Priority: unspecified Component: syslog-ng AssignedTo: bazsi@balabit.hu ReportedBy: jschauma@netmeister.org Type of the Report: --- Estimated Hours: 0.0 Ie, I have source s_tcp6 { tcp6(log_fetch_limit(25) port(601)); } source s_tcp4 { tcp(log_fetch_limit(25) port(601)); }; and I would like to have another source s_tcp { s_tcp4; s_tcp6; }; but no matter what I try, I get syntax errors. Is it not possible to have nested/derived source statements? -- 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=81 Balazs Scheidler <bazsi@balabit.hu> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO --- Comment #1 from Balazs Scheidler <bazsi@balabit.hu> 2010-05-06 06:11:46 --- that's right, you don't. you can use multiple source references in a log statement, or with the latest tags() stuff, you can filter based on tags. ie: source s_tcp6 { tcp6(log_fetch_limit(25) port(601) tags(net)); } source s_tcp4 { tcp(log_fetch_limit(25) port(601) tags(net)); }; filter f_tags_net { tags(net); }; log { filter(f_tags_net); destination(...); flags(catch-all); }; This way all "net" tagged messages go to the destination with the log statement. Do you have any other usecase? -- 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