[rsyslog-notify] Forum Thread: Special characters escaping - (Mode 'post')
noreply at adiscon.com
noreply at adiscon.com
Wed Jan 6 12:09:45 CET 2016
User: klu
Forumlink: http://kb.monitorware.com/viewtopic.php?p=26272#p26272
Message:
----------
All!
I have this rsyslog conf:
[code:3g24cb9r]if ( $fromhost-ip == '172.22.32.10' ) then
action(type="omfwd" Target="127.0.0.1" Port="25008"
Protocol="tcp" Template="RSYSLOG_TraditionalFileFormat")
& /opt/log/logdumpdebug
& stop[/code:3g24cb9r]
If I do [code:3g24cb9r]cat -e logdumpdebug[/code:3g24cb9r] I get these
characters in line: [code:3g24cb9r]M-#M-[/code:3g24cb9r] and
[code:3g24cb9r]^M[/code:3g24cb9r] at the end of the line.
I am sure this is the sending device, but the receiving
[b:3g24cb9r]omfwd[/b:3g24cb9r] application does not like this. Is there a
way to escape these characters? Will
[b:3g24cb9r]$EscapeControlCharactersOnReceive on[/b:3g24cb9r] at the
beginning of the file solve this?
More information about the rsyslog-notify
mailing list