How is rsyslog supposed to know that you have finished writing the log message if you don't include a \n at the end of the message?

David Lang

On Thu, 3 Apr 2014, DuyLong Le wrote:

Hello,

I come to you about my problem unsolved. I use Rsyslog 8.0 to run some tests.

* In all cases, the examples below do not work. Rsyslog does not transfer messages.

echo -e "=WARNING REPORT==== XX-XXX-XXXX::14:41:00 ===\nclosing AMQP connection <0.31217.95> (X.X.X.X:54313 -> X.X.X.X:5672):\nconnection_closed_abruptly" >> /var/log/rabbitmq/rabbit\@plop.log (normal, no blank line)

echo -e "\n=WARNING REPORT==== XX-XXX-XXXX::14:41:00 ===\nclosing AMQP connection <0.31217.95> (X.X.X.X:54313 -> X.X.X.X:5672):\nconnection_closed_abruptly" >> /var/log/rabbitmq/rabbit\@plop.log (blank line exist)

Rsyslog seems detected the modification but does not go far in the treatment :

############
# Receive a new event...
8912.800827607:7f19e2183700: DDDD: imfile event notification: rd 16[0], wd (3, mask 00000002, cookie 0000, len 0)
8912.800835413:7f19e2183700: watch was MODIFID
8912.800838865:7f19e2183700: DDDD: imfile: wd 3 got file 0, dir -1
8912.800853129:7f19e2183700: strm 0x7f19dfc14300: file 7 read 156 bytes
8912.800864495:7f19e2183700: strm 0x7f19dfc14300: file 7 read 0 bytes
8912.800871360:7f19e2183700: stream checking for file change on '/var/log/rabbitmq/[email protected]', inode 30007/30007
# Wait new event...
############

* I add a "\n" to the end and everything seems to work with the previous examples.

echo -e "=WARNING REPORT==== XX-XXX-XXXX::14:41:00 ===\nclosing AMQP connection <0.31217.95> (X.X.X.X:54313 -> X.X.X.X:5672):\nconnection_closed_abruptly\n" >> /var/log/rabbitmq/rabbit\@plop.log

echo -e "\n=WARNING REPORT==== XX-XXX-XXXX::14:41:00 ===\nclosing AMQP connection <0.31217.95> (X.X.X.X:54313 -> X.X.X.X:5672):\nconnection_closed_abruptly\n" >> /var/log/rabbitmq/rabbit\@plop.log

Do you have a solution because I have the same problem with others applications ? I tested with the PollingInterval but without result

Best regards,

_______________________________________________
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.

Reply via email to