yep.

David Lang

On Fri, 11 Oct 2013, robert s wrote:

Date: Fri, 11 Oct 2013 11:28:44 -0400
From: robert s <[email protected]>
Reply-To: rsyslog-users <[email protected]>
To: rsyslog-users <[email protected]>
Subject: [rsyslog] multiple destinations

Hello Everyone,

I would like to be able to send a message to a secondary location for
file preservation. So I figured I send the message to a mounted share
(NFS) and then "forward it to the second destination.

If I wanted to forward the message would the config below be correct?

:hostname, contains, "foo" {
          action (type="omfile"
                  DirCreateMode="0700"
                  FileCreateMode="0644"
                  File="/var/log/foo"
                  FlushOnTXEnd="on"
                  IOBufferSize="8k"
                            )
          action (type="omfwd"
                  Target="192.168.166.50"
                  Port="514"
                  Protocol="udp")
                           stop
                            }
_______________________________________________
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.

_______________________________________________
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