[syslog-ng] help about multiple files in syslog-ng
Jerry Bell
jbell at stelesys.com
Sun May 15 19:10:45 CEST 2005
You would do something like this:
source s_net {udp();};
destination files {file(/var/log/$HOST.log); };
log {source(s_net); destination(files); };
The value of $HOST is set to the name of the host that the log came from,
so you would get your router1.log, router2.log and router3.log.
Jerry
http://www.syslog.org
> Hi;
> I want some information regarding to multiple files in syslog-ng; The
> scenerio is that i have 4 devices normally router and i want information
> of
> each device but with same facility (local7) and this information must be
> in
> each seperate file say router1, router2 .... so on.
> How i can do this; I have attached a router via console and trying to
> access
> its log but not succeeded.
>
> Plz guide me to the solution.
>
> --
> Sarfraz
> _______________________________________________
> syslog-ng maillist - syslog-ng at lists.balabit.hu
> https://lists.balabit.hu/mailman/listinfo/syslog-ng
> Frequently asked questions at http://www.campin.net/syslog-ng/faq.html
>
>
More information about the syslog-ng
mailing list