[rsyslog-notify] Forum Thread: Re: use of mmexternal - (Mode 'reply')
noreply at adiscon.com
noreply at adiscon.com
Thu May 19 09:26:26 CEST 2016
User: lasha
Forumlink: http://kb.monitorware.com/viewtopic.php?p=26533#p26533
Message:
----------
[b:2mqjc462]dlang[/b:2mqjc462] thank you for reply.
My RSyslog is in debug mode.
[quote:2mqjc462]your python script needs to output a json
string[/quote:2mqjc462]
That's my problem. I don't understand ho to do it correctly. Can you tell
me the right format of output or suggest me url where I can read about
this?
I'm using this code
[url:2mqjc462]https://github.com/rsyslog/rsyslog/blob/master/plugins/external/skeletons/python/plugin.py[/url:2mqjc462]
as sample.
[code:2mqjc462]
1142.332281400:main Q:Reg/w0 : DDDDDD: JSON string for
message mod: 'Traceback (most recent call last):'
1142.332381800:main Q:Reg/w0 : MsgSetPropsViaJSON:
Error parsing JSON 'Traceback (most recent call last):': boolean
expected
1142.332466300:main Q:Reg/w0 : Called LogMsg, msg:
mmexternal: invalid reply 'Traceback (most recent call last):' from
program '/etc/rsyslog.d/replace_severity.py'
[/code:2mqjc462]
More information about the rsyslog-notify
mailing list