Show the Table of Contents
Audit Logging (remote file system)
Audit Logging and the HSM Audit role concepts are described here.
Remote Audit Logging
With Luna SA, the audit logs can be sent to one or more remote logging servers. Either UDP or TCP protocol can be specified. The default is UDP and port 514.
You or your network administrator will need to adjust your firewall to pass this traffic (iptables).
UDP Considerations
If using UDP protocol for logging:
- The following is required in /etc/rsyslog.conf
$ModLoad imudp
$InputUDPServerRun (PORT)
- Possible approaches include:
1. With templates:
$template AuditFile,"/var/log/luna/audit_remote.log"
if $syslogfacility-text == 'local3' then ?AuditFile;AuditFormat
2. Without templates:
local3.* /var/log/audit.log;AuditFormat
3. Dynamic filename:
$template DynFile,"/var/log/luna/%HOSTNAME%.log"
if $syslogfacility-text == 'local3' then ?DynFile;AuditFormat
- The important thing to remember is that the incoming logs go to 'local3', and the Port/Protocol that is set on the Luna appliance must be the same that is set on the server running rsyslog.
Here is an example to setup a remote Linux system to receive the audit logs using TCP.
- Register the remote Linux system IP address or hostname with the Luna SA
lunash:> audit remotehost add -host 172.20.9.160 -protocol tcp -port 1660
- Modify the remote Linux system “/etc/rsyslog.conf” to receive the audit logs
- the following lines highlight the necessary modifications in the rsyslog config file.
$ModLoad imtcp
$InputTCPServerRun 514
$template AuditFormat,"%msg:F,94:2%\n"
save log messages from Luna SA
local3.* /var/log/luna/audit.log;AuditFormat
- Modify the remote Linux system “/etc/sysconfig/rsyslog” to receive the remote logs
# Enables logging from remote machines. The listener will listen to the specified port.
SYSLOGD_OPTIONS="-r -m 0"
- Restart rsyslog daemon on the remote Linux system
# service rsyslog restart
- Monitor audit logs on the remote Linux system
# tail -f /var/log/luna/audit.log
See Also
Show the Table of Contents