[syslog-ng]Working example of forward logs

Michael Renner m.renner@inode.at
Thu, 28 Feb 2002 11:51:11 +0100


At 11:10 28.02.2002 +0100, you wrote:
>Hi,
>I want forward all server syslog logs to a Linux supervision box.
>You have a complete example for this work ?

Hi Sebastian!

Try something like

---

options { sync (0);
           log_fifo_size (1000);
           stats (86400);
         };

source src { unix-stream("/dev/log"); internal(); };
source srck { pipe("/proc/kmsg"); };

destination messages    { file("/var/log/messages"); };
destination syslogbox      { udp("213.229.60.107"); };

log { source(src); source(srck); destination(messages); flags(fallback); };
log { source(src); source(srck); destination(syslogbox); flags(fallback); };

---

This will work only with the development versions (eg. 1.5.14) of 
syslog-ng, for a documentation of the options/commands/etc. have a look at 
http://www.balabit.hu/static/syslog-ng/reference/book1.html.



best regards

-- 

Renner Michael
Junior System Engineer

Inode Telekommunikationsdienstleistungs GmbH - http://www.inode.at
support@inode.at, Tel.: 05 9999-0, Fax.: 05 9999-2699