On Fri, Sep 18, 2015 at 04:25:29PM -0700, Priya Ahuja wrote: > I am using version 2.20.1 logger utility to send logs to rsyslogd from > bash scripts. I want to send logs in RFC5424 format with custom > structured data fields, example: [sdid@enterprise-number level=INFO > id=1234]. I understand 2.20.1 does not support 5424 format but I > looked at the logger.c code in the latest version and seems structured > data fields are set to [timeQuality tzKnown=\"1\" isSynced=\"1\" > syncAccuracy=\"%ld\"]. Is there a way/plan to format custom structured > data? Implemented, for example: logger --rfc5424 --sd-id zoo@123 \ --sd-param tiger=\"hungry\" \ --sd-param zebra=\"running\" \ --sd-id manager@123 \ --sd-param onMeeting=\"yes\" \ "this is message" produces: <13>1 2015-10-01T14:07:59.168662+02:00 ws kzak - - [timeQuality tzKnown="1" isSynced="1" syncAccuracy="218616"][zoo@123 tiger="hungry" zebra="running"][manager@123 onMeeting="yes"] this is message The implementation also allows to specify standardized SD-ELEMENTs like origin, meta and timeQuality (then build-in timeQuality is disabled). It would be nice to test it against some advanced syslog. Karel -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html