Iirc you have $CONTEXT_ID for this purpose.
https://bugzilla.balabit.com/show_bug.cgi?id=247
Summary: FEATURE: add context-id value pair
Product: syslog-ng
Version: 3.4.x
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: unspecified
Component: syslog-ng
AssignedTo: bazsi@balabit.hu
ReportedBy: bugzilla.balabit@faxm0dem.org
Type of the Report: ---
Estimated Hours: 0.0
It would be great to add the context-id to the message from the patterndb, e.g. ".classifier.context-id" or something. For one it would greatly help
troubleshooting.
Thanks
--
Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
______________________________________________________________________________
Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng
FAQ: http://www.balabit.com/wiki/syslog-ng-faq