On Fri, Jul 19, 2013 at 1:39 AM, Erik Steffl <[email protected]> wrote:
> I have a disk assisted omfwd queue that is set up using following action: > > action( > type="omfwd" > target="some.host.com" > port="5140" > protocol="tcp" > template="json" > queue.filename="/mnt/rsyslog-**queue/json" > queue.maxdiskspace="**75161927680" # 70GB > queue.highwatermark="1" > ) > > I overlooked that yesterday. The filename cannot be a path, must be a plain name. It is always being created in the working directory (the name is actually concatenated to the workdir name). > Debugging output shows that it is set up at least sort of properly. > Trying to test it by setting invalid hostname and thge debug output shows > that the syslog will retry but I never see anything created in > /mnt/rsyslog-queue/ directory (or in workdir which is set to > /var/spool/rsyslog). > > I thought that if queue.highwatermark is set to one then any pending > messages will be written to disk queue (I wrote tons of mesages to syslog). > setting it to one might not work as expected in any case - it's so low that this may cause some issues. > > Parts of the debug output (rsyslogd -dn) that I think are relevant > included (it's huge so not including everything): > > 5853.855732748:7fcbd0f0a780: action 5 queue: type 3, enq-only 0, disk > assisted 0, maxFileSz 75161927680, lqsize 0, pqsize 0, child 0, full delay > 970, light delay 700, deq batch size 128 starting > 5853.855739888:7fcbd0f0a780: Action builtin:omfwd[0x1c39590]: queue > 0x1c41ba0 started > > any ideas how to debug/troubleshoot the disk queues that assist the > omfwd queues? How to make rsyslogd to write something to disk? > I suggest just sending enough data to it for the test. You can use rsyslog's own message generator, which was originally developed for the testbench and is still being used for it: http://www.rsyslog.com/how-to-use-tcpflood/ This recent blog posting may also be of interest: http://blog.gerhards.net/2013/07/rsyslog-why-disk-assisted-queues-keep.html Rainer > > thanks, > > erik > ______________________________**_________________ > rsyslog mailing list > http://lists.adiscon.net/**mailman/listinfo/rsyslog<http://lists.adiscon.net/mailman/listinfo/rsyslog> > http://www.rsyslog.com/**professional-services/<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. > _______________________________________________ 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.

