[rsyslog-notify] Forum Thread: Re: Rsyslog Message Property Contains Quotes - (Mode 'reply')

noreply at adiscon.com noreply at adiscon.com
Fri Sep 11 20:41:37 CEST 2015


User: dlang 
Forumlink: http://kb.monitorware.com/viewtopic.php?p=25904#p25904

Message: 
----------
there is no more detail than the -dn output

I don't understand when you say that you try to write to a file and nothing
shows up, that has to mean a config error (which could be something like
selinux preventing you from creating a file in /tmp)

if you do

/var/log/testing;EXAMPLE

you will get the log, formatted with the template EXAMPLE in the file
/var/log/testing

so there are quotes in $msg and you need to escape them in your template,
correct?
in that case, doing %msg:::json% to escape it per the JSON rules should
change " to \" is this what you are needing? or are you needing something
different?


More information about the rsyslog-notify mailing list