LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-11-2005, 04:30 PM   #1
spelltoronto
Member
 
Registered: Jan 2005
Location: San Diego, CA
Posts: 36

Rep: Reputation: 15
Increase Audit Log size in RHEL 3.0?


Hi,

Is there a way to increase the system audit logs size so that it can hold more auditing information, for a longer period of time. It seems the logs in RHEL 3.0 only go back a few days...

Thanks
 
Old 05-12-2005, 01:54 AM   #2
bnj
Member
 
Registered: Apr 2005
Location: Switzerland
Distribution: Ubuntu
Posts: 70

Rep: Reputation: 15
Dirty workaround: log your logs. Using a cronjob, you can make your own copy of the logs.

I'm sorry but I do not have a better idea at the moment.
 
Old 05-13-2005, 01:17 AM   #3
spelltoronto
Member
 
Registered: Jan 2005
Location: San Diego, CA
Posts: 36

Original Poster
Rep: Reputation: 15
Can someone paste in a cronjob script that would copy the sytem logs and save them to a seperate directory?

Sorry, I'm a newbie...

Thanks
 
Old 05-17-2005, 02:21 AM   #4
bnj
Member
 
Registered: Apr 2005
Location: Switzerland
Distribution: Ubuntu
Posts: 70

Rep: Reputation: 15
Here is the code of the script. Store it as myscript.sh

Code:
#!/bin/bash
MOMENT=$(date +%Y.%m.%d_%H%M%S)
cp /path/to/your/log/files/here.log /path/to/your/backup/here.$MOMENT.bak
gzip /path/to/your/backup/here.$MOMENT.bak
And edit your crontabs using the command
Code:
$ crontab -e
(you will have to know the vi editor)
Then paste this job:
Code:
#0 1 * * * /path/to/your/script/myscript.sh
 
Old 05-17-2005, 06:29 PM   #5
spelltoronto
Member
 
Registered: Jan 2005
Location: San Diego, CA
Posts: 36

Original Poster
Rep: Reputation: 15
Thanks! I'll give that a try....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I increase the size of a Reiserfs? lothario Linux - Software 6 02-27-2005 08:07 PM
/var/log/messages - kernel: audit(1107868785.573:0): avc: denied { getattr } lothario Linux - Security 2 02-10-2005 04:24 AM
Audit Log in AIX? DriveMeCrazy AIX 5 05-16-2004 03:37 PM
How do I increase the size of fonts in X gianh Linux - Newbie 2 03-08-2004 09:02 PM
increase point size size when printing PDF files newlin Red Hat 0 09-27-2003 07:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration