Hello,
I've been having issues trying to print the confirmation message for
rsyslog acknowledgement.
on line:
onMessage(line)
status = "OK"
print(status, flush=True)
My program is printing BrokenPipeError: [Errno 32] Broken pipe for a lot of
the messages it receives, which leads me to think that the message in
question has not been processed. In fact, there are plenty of messages not
fully processed.
I'm using the following configuration in rsyslog:
if ($programname == "sysd11") then {
if (re_match($msg, "status=([a-zA-Z0-9]+)")) then {
action(type="omprog"
name="parser_processed"
binary="/usr/local/scripts/py/logparser.py"
template="POSTFIX_FormatTo"
confirmMessages="on"
queue.type="LinkedList"
queue.size="25000"
queue.workerThreads="15"
queue.workerThreadMinimumMessages="40"
output="/var/log/system/processed.log"
)
}
Could anyone help me on that?
I'm using impstats to review if messages are discarded but there's no
message discarded, which should lead into all messages been processed, but
that's not the case, definitely.
Appreciated,
Eudald
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE THAT.
I've been having issues trying to print the confirmation message for
rsyslog acknowledgement.
on line:
onMessage(line)
status = "OK"
print(status, flush=True)
My program is printing BrokenPipeError: [Errno 32] Broken pipe for a lot of
the messages it receives, which leads me to think that the message in
question has not been processed. In fact, there are plenty of messages not
fully processed.
I'm using the following configuration in rsyslog:
if ($programname == "sysd11") then {
if (re_match($msg, "status=([a-zA-Z0-9]+)")) then {
action(type="omprog"
name="parser_processed"
binary="/usr/local/scripts/py/logparser.py"
template="POSTFIX_FormatTo"
confirmMessages="on"
queue.type="LinkedList"
queue.size="25000"
queue.workerThreads="15"
queue.workerThreadMinimumMessages="40"
output="/var/log/system/processed.log"
)
}
Could anyone help me on that?
I'm using impstats to review if messages are discarded but there's no
message discarded, which should lead into all messages been processed, but
that's not the case, definitely.
Appreciated,
Eudald
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE THAT.