Syslog remote logging
Alain Satre
alain at messagebay.com
Wed Feb 14 12:21:22 CST 2001
What about specifying the line twice?
i.e.
mail.info /var/log/maillog
mail.info @syslog.server
In some examples it looks like you can do this, and it will write to both. I
havent tried it yet, but it may work.
Syslog -r ? Thats it? I would hope that doesnt allow untrsted hosts to send
syslog data to your host? Is there a way to allow certain ip's? or just all
or nothing?
Thanks a Bunch David!
Alain-
David Lloyd wrote:
> Alain!
>
> It looks like this is partially what you want to do:
>
> 1) Syslog Server
>
> On the main machine where you start syslog (the one you want the
> messages to be sent to):
>
> - start syslog with syslogd -r
> - this causes syslog to listen on its default port (514/udp)
>
> You have to do this before it will work. You may want to fiddle with the
> actual /etc/rc.d/init.d/syslogd script to force it in.
>
> 2) Local Client
>
> These are the machines where you want the messages to be sent to the
> above machine. You have to adjust its configuration file,
> /etc/syslog.conf:
>
> mail.info @syslog.server
>
> Of course, it would probably be wise to restart syslog once you've
> adjusted it. I'm not sure whether syslog reads its configuration once at
> startup or every time it logs something. I suspect only once.
>
> I'm not certain how you would convince syslog to log these messages to
> local using syslog alone. I've experimented with adding a "comma" after
> @syslog.server and a local file, and a "colon" and a local file and it
> doesn't want to work.
>
> DL
> --
> Let's get loud, let's get loud,
> Ain't nobody gonna tell me
> Who I'm allowed to do now...
>
> --
> LinuxSA WWW: http://www.linuxsa.org.au/ IRC: #linuxsa on irc.linux.org.au
> To unsubscribe from the LinuxSA list:
> mail linuxsa-request at linuxsa.org.au with "unsubscribe" as the subject
--
LinuxSA WWW: http://www.linuxsa.org.au/ IRC: #linuxsa on irc.linux.org.au
To unsubscribe from the LinuxSA list:
mail linuxsa-request at linuxsa.org.au with "unsubscribe" as the subject
More information about the linuxsa
mailing list