On Thu, 5 May 2016, Zhou, Tao wrote:

Hi there,

We are evaluating  the logging system variants for our embedded low end Linux 
application. One of our requirements is to identify the log type when the log 
message is generated at the first place.

msgid is defined as property in rsyslog. How do I set msgid when I generate a 
log ?

I searched the rsyslog documents and what I found was how to use property, i.e. 
msgid, hostname, etc in filter and template. Nothing about how to generate them 
by users API.

They are set by passing in a message using the RFC5324 format.

Or, you can parse the message that you have received and then create a custom template to output the message with the extracted value in the msgid field.

David Lang
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

Reply via email to