The snippet looks good.

On Fri, Oct 11, 2013 at 5:28 PM, robert s <[email protected]> wrote:

> 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