[rsyslog-notify] Forum Thread: Empty logs (one file per message) - (Mode 'edit_topic')

noreply at adiscon.com noreply at adiscon.com
Fri Jan 23 16:49:53 CET 2015


User: nublaii 
Forumlink: http://kb.monitorware.com/viewtopic.php?p=25189#p25189

Message: 
----------
I need to log a fair amount of messages (around 500.000 a day) and I need
to send each of them to a single file.

I have managed to do it by using a dynamic template and I am using the
program name as the variable that creates the filename: I write a different
ID using that field when I log the messages (along the lines of
'msg000001', 'msg000002', etc.)

I am using this snippet to accomplish it, using memory/disk queues for
persistency and security:

$template DynaFile,"/srv/work/msg-%programname%.log"
$ActionQueueType LinkedList
$ActionQueueFileName tmplog
$ActionResumeRetryCount -1
$ActionQueueSaveOnShutdown on
if $programname startswith 'msg' then -?DynaFile
&stop

Right now I'm running this locally, using a script to generate the
messages, but when I try this with a big number of messages (say 10.000), I
get some empty files: I do get the right filename but they are empty...

For my tests all my messages have the same content, and the program name
changes incrementally.

Any idea how I can go about debugging why this happens?


More information about the rsyslog-notify mailing list