Remote Logging Receiving Server:
Setting Up The Receiving Host:
Red Hat:
vi /etc/sysconfig/rsyslog
CentOS:
vi /etc/sysconfig/syslog
Edit File Change Line To:
SYSLOGD_OPTIONS="-c 2 -r"
i to edit. Esc then shift ZZ to save and exit.
Now Edit:
Red Hat:
vi /etc/rsyslog.conf
CentOS:
vi /etc/syslog.conf
i to edit. Change the lines below Provides UDP syslog reception and Provides TCP syslog reception by un-commenting the lines. Esc then shift ZZ to save and exit.
Update The Remote System Log:
Red Hat:
service rsyslog restart
CentOS:
/sbin/service syslog restart
last
command finds the when people logged in and out of the system along with what time and where from.
last | tail
will give you just the recent logins and logouts.
logger Your Message Goes Here
Lets you test the logging of the log files. Your message will be in the messages log file. You can find the log messages with regards to a certain user by using grep.
grep yourusername /var/log/messages
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment