The following configuration produces tcp traffic per event, but nothing is 
logged to the file (remote.log) or in the database at the server:

This is the client config (rsyslog 4.6.4 on OpenBSD 5.3):
---
$WorkDirectory /var/rsyslog # where to place spool files
$ActionQueueFileName qf # unique name prefix for spool files
$ActionQueueMaxDiskSpace 10g  # 1gb space limit (use as much as possible)
$ActionQueueSaveOnShutdown on # save messages to disk on shutdown
$ActionQueueType LinkedList   # run asynchronously
$ActionResumeRetryCount -1    # infinite retries if host is down
$ModLoad omrelp
*.* :omrelp:192.168.220.131:601
--
…and this is the server side (7.2.4 on FreeBSD 9.1):
---
module(load="imrelp")
input(type="imrelp" port="601")
$ModLoad ompgsql.so
if $fromhost-ip != '127.0.0.1' then {
        *.* :ompgsql:host,db,login,none;
        $ActionQueueFileName dbq        # unique name prefix for spool files
        $ActionQueueMaxDiskSpace 10g  # 10gb space limit (use as much as 
possible)
        $ActionQueueSaveOnShutdown on # save messages to disk on shutdown
        $ActionQueueType LinkedList   # run asynchronously
        $ActionResumeRetryCount -1    # infinite retries if host is down
        *.* /var/log/remote.log
        ~
}
---
Wenn I shutdown the server, all missing events are logged to both targets.
Behavior does not change, if I comment out the $Action statements.

What am I doing wrong?
Axel
--
PGP-Key:29E99DD6  ☀ +49 151 2300 9283  ☀ computing @ chaos claudius

_______________________________________________
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