Hi David,

The queue that I created did not have the all the values set. I include a
before and after snapshot of values:

### Without extra config
5640.137472888:main thread    : name:  'logtoserver'
5640.137475404:main thread    : type:  'omrelp'
5640.137477650:main thread    : action.writeallmarkmessages: (unset)
5640.137479855:main thread    : action.execonlyeverynthtime: (unset)
5640.137481950:main thread    : action.execonlyeverynthtimetimeout: (unset)
5640.137484048:main thread    : action.execonlyonceeveryinterval: (unset)
5640.137486215:main thread    : action.execonlywhenpreviousissuspended:
(unset)
5640.137488380:main thread    : action.repeatedmsgcontainsoriginalmsg:
(unset)
5640.137490462:main thread    : action.resumeretrycount: (unset)
5640.137492590:main thread    : action.reportsuspension: (unset)
5640.137494636:main thread    : action.reportsuspensioncontinuation: (unset)
5640.137496684:main thread    : action.resumeinterval: (unset)
5640.137498785:main thread    : action.copymsg: (unset)



#### With extra config
5471.816297291:main thread    : name:  'logtoserver'
5471.816299847:main thread    : type:  'omrelp'
5471.816302082:main thread    : action.writeallmarkmessages: (unset)
5471.816304296:main thread    : action.execonlyeverynthtime: (unset)
5471.816306387:main thread    : action.execonlyeverynthtimetimeout: (unset)
5471.816308512:main thread    : action.execonlyonceeveryinterval: (unset)
5471.816310603:main thread    : action.execonlywhenpreviousissuspended:
(unset)
5471.816312746:main thread    : action.repeatedmsgcontainsoriginalmsg:
(unset)
5471.816314841:main thread    : action.resumeretrycount: -1
5471.816317096:main thread    : action.reportsuspension: 1
5471.816319261:main thread    : action.reportsuspensioncontinuation: 1
5471.816321360:main thread    : action.resumeinterval: 10
5471.816323485:main thread    : action.copymsg: (unset)

( Output provided by running rsyslog as rsyslogd -dn )

Regards

On 22 July 2015 at 17:12, David Lang <[email protected]> wrote:

> On Wed, 22 Jul 2015, Gerhardus Geldenhuis wrote:
>
>  Looks like I cracked my problem. I now reliably get logs send to my server
>> regardless of how I break the connection between server and client, and
>> regardless of the number of messages.
>>
>> My config on the client:
>> action( type="omrelp"
>>        name="logtoserver"
>>        target="192.168.8.134"
>>        port="514"
>>        queue.size="5000"
>>        queue.type="LinkedList"
>>        queue.spoolDirectory="/var/lib/rsyslog"
>>        queue.filename="testforwardingqueue"
>>        queue.lowwatermark="2000"
>>        queue.highwatermark="3500"
>>        queue.discardmark="5000"
>>        queue.maxfilesize="1g"
>>        queue.saveonshutdown="on"
>>        action.ResumeInterval="10"
>>        action.ResumeRetryCount="-1"
>>        action.reportSuspension="on"
>>        action.reportSuspensionContinuation="on"
>>      )
>>
>> What did the trick in the end was looking at the queue settings by running
>> rsyslog in debug mode and noticing that the action settings were "unset".
>> I
>> expected them to be set to default values but this has turned out not to
>> be
>> the case so a bit of a gotcha.
>>
>
> which values were unset?
>
> David Lang
>
> _______________________________________________
> 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.
>



-- 
Gerhardus Geldenhuis
_______________________________________________
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