Nevermind, it was waiting for the program to finalize in order to write all the messages to the output file.
Thanks and sorry. Eudald El sáb., 1 feb. 2020 a las 14:18, Eudald Valcàrcel (< [email protected]>) escribió: > Hello! > I'm trying to understand why some logs are missed by my plugin, and I > thought that writing something from my plugin to stderr would help me. > > I've configured the omprog to have an output file, and my plugin writes: > *sys.stderr.write("test")* for each message it receives (along with the > "OK" message for confirmMessages and an INSERT query) > The result is that inserts take place in the database, which means the OK > message is sent back to rsyslog, but the stderr message is not written to > my output file. > > According to documentation: > If confirmMessages > <https://www.rsyslog.com/doc/v8-stable/configuration/modules/omprog.html#confirmmessages> > is set to “on”, only the stderr of the child is written to the specified > file (since stdout is used for confirming the messages). > > Shouldn't it be logged in my output file? > Thanks, > 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.

