From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Flatley Subject: Re: question Date: Sun, 2 Nov 2008 12:24:45 -0500 Message-ID: References: <200810311550.12429.sgrubb@redhat.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1681771857==" Return-path: In-Reply-To: <200810311550.12429.sgrubb@redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com To: Steve Grubb , linux-audit@redhat.com List-Id: linux-audit@redhat.com --===============1681771857== Content-type: multipart/related; Boundary="0__=0ABBFE66DFCE340F8f9e8a93df938690918c0ABBFE66DFCE340F" --0__=0ABBFE66DFCE340F8f9e8a93df938690918c0ABBFE66DFCE340F Content-type: multipart/alternative; Boundary="1__=0ABBFE66DFCE340F8f9e8a93df938690918c0ABBFE66DFCE340F" --1__=0ABBFE66DFCE340F8f9e8a93df938690918c0ABBFE66DFCE340F Content-type: text/plain; charset=US-ASCII Thanks for the reply Steve. On Friday 31 October 2008 14:21:12 David Flatley wrote: > If you would indulge my simpler in comparison question of the group. I > am setting up audit on heavy usage systems. I have setup my auditd.conf to > rotate the files once they get to 70 meg and allow up to 12 rotated files. You don't need to limit the files to 12 unless you are short on disk space. you can use keep_logs as the max_log_file option and one will not be lost. Disk space is not a problem if the day's logging is collected and stored, which is required, > I created a cron that runs hourly to look and see if a ninth rotated file > exists and if so run "ausearch -i" outputted to a file and store the > file, You shouldn't need to ausearch the file? Are you doing that to split the file on a time hack? In that case you can just about as easily do a "service auditd rotate" and force auditd to end at a certain time rather than by size. Yes and then I could use ausearch -if when I need to look at the logs after they have been moved to storage. Or apply the ausearch -i when I do the> storage of the file, I do this to convert from numerical to text on the file. > then remove the rotated files. I run the cron to avoid losing data if > there is alot of activity and rotated files are rolled off. I also have to > balance performance with auditing in this arrangement. Perhaps we need the capability of switching out partitions used for logging? Maybe that could be solved by using the space left action exec capability to run a custom program that re-writes the audit config file or changes a symlink to point to another config file to point to a new dir and then sends sighup to the parent (auditd). Maybe some others have ideas about how they solve the same problem. If we need to make changes to the audit daemon to make this smoother, let me know what's needed. -Steve --1__=0ABBFE66DFCE340F8f9e8a93df938690918c0ABBFE66DFCE340F Content-type: text/html; charset=US-ASCII Content-Disposition: inline

Thanks for the reply Steve.

Inactive hide details for Steve Grubb <sgrubb@redhat.com>Steve Grubb <sgrubb@redhat.com>


On Friday 31 October 2008 14:21:12 David Flatley wrote:
>     If you would indulge my simpler in comparison question of the group. I
> am setting up audit on heavy usage systems. I have setup my auditd.conf to
> rotate the files once they get to 70 meg and allow up to 12 rotated files.

You don't need to limit the files to 12 unless you are short on disk space.
you can use keep_logs as the max_log_file option and one will not be lost.


Disk space is not a problem if the day's logging is collected and stored, which is required,

> I created a cron that runs hourly to look and see if a ninth rotated file
> exists and if so run "ausearch -i" outputted to a file and store the
> file,

You shouldn't need to ausearch the file? Are you doing that to split the file
on a time hack? In that case you can just about as easily do a "service
auditd rotate" and force auditd to end at a certain time rather than by size.

Yes and then I could use ausearch -if <file> when I need to look at the logs
after they have been moved to storage. Or apply the ausearch -i when I do the
storage of the file, I do this to convert from numerical to text on the file.

> then remove the rotated files. I run the cron to avoid losing data if
> there is alot of activity and rotated files are rolled off. I also have to
> balance performance with auditing in this arrangement.

Perhaps we need the capability of switching out partitions used for logging?
Maybe that could be solved by using the space left action exec capability to
run a custom program that re-writes the audit config file or changes a
symlink to point to another config file to point to a new dir and then sends
sighup to the parent (auditd).

Maybe some others have ideas about how they solve the same problem. If we need
to make changes to the audit daemon to make this smoother, let me know what's
needed.

-Steve

--1__=0ABBFE66DFCE340F8f9e8a93df938690918c0ABBFE66DFCE340F-- --0__=0ABBFE66DFCE340F8f9e8a93df938690918c0ABBFE66DFCE340F Content-type: image/gif; name="graycol.gif" Content-Disposition: inline; filename="graycol.gif" Content-ID: <1__=0ABBFE66DFCE340F8f9e8a93df938@us.ibm.com> Content-transfer-encoding: base64 R0lGODlhEAAQAKECAMzMzAAAAP///wAAACH5BAEAAAIALAAAAAAQABAAAAIXlI+py+0PopwxUbpu ZRfKZ2zgSJbmSRYAIf4fT3B0aW1pemVkIGJ5IFVsZWFkIFNtYXJ0U2F2ZXIhAAA7 --0__=0ABBFE66DFCE340F8f9e8a93df938690918c0ABBFE66DFCE340F-- --===============1681771857== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============1681771857==--