[syslog-ng] [Bug 262] patterndb: Computed <values> are not expanded in context-id

bugzilla at bugzilla.balabit.com bugzilla at bugzilla.balabit.com
Thu Dec 19 12:16:48 CET 2013


--- Comment #2 from Gergely Nagy <algernon at balabit.hu>  2013-12-19 12:16:48 ---
To clarify, calling pdb_message_apply() sooner will fix this. That applies tags and values, but it's also called a bit later anyway. Calling it later is
desirable, as the context is set up there, while it is not at the time the message in question is printed. When called twice, the second should overwrite the
values properly, but that can't be guaranteed with the current code.

So what I think would be best, is to move the printing of the message to a later time, and delay it a little. There's no return point between the two places
anyway. This way, we'd have variables expanded, and wouldn't have to worry about expanding them twice for no good reason, at the cost of printing the message a
tiny bit later.

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