Virtual TapeServer 6.04.02 Operations and Administration Guide
Troubleshooting | 133
To enable remote logging
1. Log in to the VTS server as bill.
2. Use the su command to change to the root user:
su -
3. Edit /etc/syslog.conf and add the following line:
kern.* @loghost
where loghost is the name of the remote server. kern.* specifies to log all kernel
messages. To log other messages, refer to the syslog.conf man page.
4. Run the following commands:
chkconfig auditd off
service auditd stop
service syslog restart
These commands stop local logging through the auditd process and force audit records to
be logged through syslog. The syslog facility will send log messages to the remote system.
Note that audit log messages will also be listed in /var/log/kern_messages.
5. Log out of the VTS system.
To test the remote logging, log in to the VTS system using SSH but specify an incorrect user
or password. Messages about this attempt should appear in the remote log. The log files in
which messages are placed on the remote system depends on its configuration.
Other log files
The following log files are generated and saved in various directories on the VTS server.
Operating system logs:
• /var/log/messages
• /var/log/cron
• /var/log/boot.log
Apache web server logs:
• /var/log/httpd/error_log
• /var/log/httpd/access_log
VTS function logs:
• /usr/local/tape/log/ems.* (available from the VTS web interface)
• /usr/local/tape/log/debug.* (available from the VTS web interface)
• /usr/local/tape/log/mount.log
• /usr/local/tape/log/export.log (available from the VTS web interface)
• /usr/local/tape/log/event.log (available from the VTS web interface; see page 128 for
more information)
• /usr/local/tape/log/scanat.log
• /usr/local/tape/log/vtape.log
• /usr/local/tape/log/upgrade.log