You’re lost again when trying to send handcrafted packages to a syslog server, right? Luckily, for Rsyslog, Rainer Gerhards is here to help with the debug format template:

http://blog.gerhards.net/2013/06/rsyslog-how-can-i-see-which-field.html

The link provides example usage of the template for the legacy configuration language, therefore allow me to specify it in the modern syntax (because what’s another minute when you’re six levels deep into yak shaving?):

action(type="omfile" File="/var/log/yak-shavers-anonymous" Template="RSYSLOG_DebugFormat")