Syslog server.
Dan Nelson
dnelson at allantgroup.com
Fri Jan 14 07:26:51 PST 2005
In the last episode (Jan 14), Ricardo Pichler said:
> > I've an slackware box that your main function is be a syslog
> > server! Ok, it work, but I need to separate the log for each box
> > that I've in files with the same name of box. Can anybody help me?
> >
> > e.g.: an entry in my /var/log/messages:
> > Jan 13 18:11:49 ns500 ns500-sjc: NetScreen device_id=ns500-sjc [Root]system-notification-00018: Policy ......
>
> Sorry, my box is a FreeBSD 5.2.1.
You can use hostname specifications to filter by dns name or IP:
+ns500
*.* /var/log/machine/ns500
You will need one of these blocks per machine, though.
--
Dan Nelson
dnelson at allantgroup.com
More information about the freebsd-questions
mailing list