help about multiple files in syslog-ng
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
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@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html
participants (2)
-
Jerry Bell
-
Sarfraz Rustam