That's what I did using rsyslog and every thing work find now, thx for
everything


2014-07-24 9:22 GMT+02:00 Mathias Jeschke <openvpn-us...@0xaffe.de>:

>
>  Hi,
>
>  I recommend to not stick to the facility limitation of the last
>  century's syslogd
>  and rather filter by program name.
>
>  You could add something like this to your rsyslog.conf:
>
>  :programname,isequal,"openvpn" @192.168.0.1
>
>  or, if you have multiple instances of openvpn and set a different
>  program name, e.g.
>
>  $ openvpn --config service1.ovpn --syslog "openvpn-service1"
>
>  you could also filter for a prefix:
>
>  :programname,startswith,"openvpn" @192.168.0.1
>
>
>  Of course, 192.168.0.1 needs to be replaced by your log server
>  (@@ if you want to use tcp instead of udp).
>
>  HTH,
>  Mathias.
>
>  On Wed, 23 Jul 2014 23:50:53 +0200, Jan Just Keijser
>  <janj...@nikhef.nl> wrote:
>
> > openvpn will send all messages to syslog with program name set to
> > 'openvpn' ; the level at which messages are logged is something else,
> > however. Normally the messages are sent with facility LOG_DAEMON and
> > level LOG_ERR, LOG_NOTICE etc.
> >
> > You could try filtering these out in rsyslog using
> >
> > daemon.*  @@....
>
>
> ------------------------------------------------------------------------------
> Want fast and easy access to all the code in your enterprise? Index and
> search up to 200,000 lines of code with a free copy of Black Duck
> Code Sight - the same software that powers the world's largest code
> search on Ohloh, the Black Duck Open Hub! Try it now.
> http://p.sf.net/sfu/bds
> _______________________________________________
> Openvpn-users mailing list
> Openvpn-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/openvpn-users
>
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Openvpn-users mailing list
Openvpn-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-users

Reply via email to