[rsyslog-notify] Forum Thread: Re: Remote logging - (Mode 'reply')
noreply at adiscon.com
noreply at adiscon.com
Fri Mar 10 17:09:27 CET 2017
User: PascalWithopf
Forumlink: http://kb.monitorware.com/viewtopic.php?p=27182#p27182
Message:
----------
Hallo Thomas,
du kannst das Problem umgehen indem du mmnormalize benutzt.
Hier die dazugehörige rulebase, die ich erstellt habe:
[code:176ip51c]rule=:<188> %udate:date-rfc3164% 2017
%uhostname:word% \x25\x2510%usyslogtag:char-to:\x3a%:
%umsg:rest%[/code:176ip51c]
Wenn du jetzt im Template anstatt der Properties die Variablen benutzt dann
sollte alles funktionieren.
Hier ein Template mit den Variablen, du kannst diese dann einfach so
benutzen wie du sie brauchst, um in die Datenbank zu schreiben.
[code:176ip51c]template(name="template" type="string" string="%TIMESTAMP%
%syslogfacility-text% %syslogseverity-text% %$!uhostname% %$!usyslogtag%
%$!umsg%\n")[/code:176ip51c]
Viele Grüße
Pascal Withopf
More information about the rsyslog-notify
mailing list