Account Links: Cart | Your Account | Logout

Skip to content

Red Hat Knowledgebase

Red Hat Knowledgebase Search:

Updated Within the Last:

New Solutions within the last day New Solutions within the last week New Solutions within the last month

Browse by topics:


Click to View a Topic
Red Hat Enterprise Linux > AS/ES/WS v. 3 > Issue <<  52 of 594 >>

Solution Tools:


Email a Solution Postcard Printer version Submit a comment on this answer Update notifications Request an answer Back

Article Reference

Article ID: 4499
Last update: 12-07-04
Issue:
My system has numerous 20MB files in the /var/log/audit.d directory. What are these files and where did they come from?
Resolution:
The files in /var/log/audit.d are log files generated by the Linux Audit Subsystem (LAuS). LAuS is active by default and logs certain system activities for security purposes. If security auditing is not required, LAuS can be switched off with using these commands:
service audit stop
chkconfig audit off
After stopping the service any save.* files in /var/log/audit.d can be deleted. We recommend leaving the bin.* files intact in case LAuS is needed in the future. LAuS functionality will be disabled by default in upcoming versions of Red Hat Enterprise Linux 3.

Because LAuS is used for security auditing, the log files it creates are never removed. If a system using LAuS is under heavy load it is possible for the log files to grow to the point where they fill the filesystem containing /var, which will crash the system. There are several ways to prevent this. The simplest way is to periodically monitor the size of the /var/log/audit.d and remove old save.* files. Another technique is to prevent the archiving of audit data to save.* files. This can be done by modifing the notify line in the output section of /etc/audit/audit.conf to use /bin/true instead of /usr/sbin/audbin:

/etc/audit/audit.conf
 
output {
        mode            = bin;
        num-files       = 4;
        file-size       = 20M;
        file-name       = "/var/log/audit.d/bin";
        notify          = "/bin/true";

      


A third way to prevent archive data from filling up the filesystem would be to write a logrotate script that removes save.* files based on age. However, writing a logrotate script for LAuS is out of scope for this article.


How well did this entry answer your question?


good wrong incomplete out of date
Red Hat Enterprise Linux > AS/ES/WS v. 3 > Issue <<   52  of  594  >>