RE: Consolidate logwatch message from all servers to 1 server
Leuy Eeelyu <sarawakbird-/[email protected]>
| Newsgroups | gmane.linux.redhat.release.taroon.general |
|---|---|
| Message-ID | <[email protected]> |
> 2) setup the clients to syslog to remote server > > To set machines to log centrally, edit /etc/syslog.conf and add a line > like: > *.info @logmachine.example.com Hi ALL.. I am sorry to ask again, I had create a hostname of abc.mycompany.com to map to the logserver IP 10.10.10.10 for example in /etc/hosts and in /etc/syslog.conf I have this *.info;mail.none;authpriv.none;cron.none @abc.mycompany.com And in the logserver, I have added SYSLOGD_OPTIONS="-m 0 -r" in /etc/sysconfig/syslog and restart syslog in client and server But I don't see any connection from client to logserver at all and also no log is recorded in the logserver. Anything wrong? Besides, I want to know what is the file location on the logserver that the client will log to ? in the client's /etc/syslog.conf, it has @abc.mycompany.com but it did not specify what file location in logserver. --- "Sharpe, Sam J" <sam.sharpe-AQ/[email protected]> wrote: > > >b) change /etc/syslog.conf on each machine to point to that server, > > > > which part of /etc/syslog.conf that I can point to another > > unix machine on the network, what is the format ? > > I answered this earlier. > > 1) setup a syslog server > > On logmachine.example.com you need to start syslogd with the -r switch > to enable accepting remote log messages. On RedHat that's done by > editing /etc/sysconfig/syslog and adding -r to SYSLOGD_OPTIONS so it > looks like: SYSLOGD_OPTIONS="-m 0 -r" > > 2) setup the clients to syslog to remote server > > To set machines to log centrally, edit /etc/syslog.conf and add a line > like: > *.info @logmachine.example.com > > -- > Sam > > -- > Taroon-list mailing list > [email protected] > https://www.redhat.com/mailman/listinfo/taroon-list > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- Taroon-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/taroon-list