Results 1 to 3 of 3

Thread: syslog-ng: log to remote host

  1. #1

    Default syslog-ng: log to remote host

    I want to tell syslog-ng to log /var/log/messages to both the local and a remote syslog server. Does anyone know how to do that?

    Thanks for any help.

  2. #2
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,655
    Blog Entries
    15

    Default Re: syslog-ng: log to remote host

    Quote Originally Posted by henders254
    I want to tell syslog-ng to log /var/log/messages to both the local and
    a remote syslog server. Does anyone know how to do that?

    Thanks for any help.

    Hi
    A google on "syslog-ng"+"remote logging" gives some good info A
    bit more configuration than just using the -r option for syslogd.

    --
    Cheers Malcolm (Linux Counter #276890)
    openSUSE 11.0 x86 Kernel 2.6.25.18-0.1-default
    up 1 day 7:14, 2 users, load average: 0.04, 0.36, 0.43
    GPU GeForce 6600 TE/6200 TE - Driver Version: 177.80


  3. #3
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: syslog-ng: log to remote host

    There's an example in the syslog-ng.conf file:

    Code:
    #
    # Enable this and adopt IP to send log messages to a log server.
    #
    #destination logserver { udp("10.10.10.10" port(514)); };
    #log { source(src); destination(logserver); };
    The logserver destination spec is what you should enable and then you add that destination to the current list of enabled destinations. Naturally you have to set up the receiving end to accept log packets.

    man syslog-ng.conf has more details, and there is documentation at the upstream website.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •