LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 04-29-2011, 06:14 AM   #1
k_balaa
LQ Newbie
 
Registered: Apr 2011
Location: India
Posts: 28

Rep: Reputation: 0
Audit Log


Friends,
How can i clear the /var/log/audit.d/save.??

[root@server audit.d]# ls -ltr
total 1045700
-rw------- 1 root root 20971456 Mar 29 20:16 save.21
-rw------- 1 root root 20971426 Mar 30 09:51 save.22
-rw------- 1 root root 20971337 Mar 31 01:10 save.23
-rw------- 1 root root 20971367 Mar 31 14:43 save.2
-rw------- 1 root root 20971315 Apr 1 04:27 save.24
-rw------- 1 root root 20971411 Apr 1 19:03 save.25
-rw------- 1 root root 20971514 Apr 2 08:25 save.26

I donít want to stop the audit demon.
Can I use rm ? or any other utility available for deletions...
 
Old 04-29-2011, 06:18 AM   #2
brownie_cookie
Member
 
Registered: Mar 2011
Location: Belgium
Distribution: CentOS release 5.5 (Final), Red Hat Enterprise Linux ES release 4 (Nahant Update 8)
Posts: 416
Blog Entries: 2

Rep: Reputation: 12
something like
Code:
find /var/log/audit.d/ -name "save.*" -exec rm -f {} \;
 
Old 04-29-2011, 07:00 AM   #3
k_balaa
LQ Newbie
 
Registered: Apr 2011
Location: India
Posts: 28

Original Poster
Rep: Reputation: 0
So simply i can use rm
ok i will check,
thanks
 
Old 04-29-2011, 09:10 AM   #4
brownie_cookie
Member
 
Registered: Mar 2011
Location: Belgium
Distribution: CentOS release 5.5 (Final), Red Hat Enterprise Linux ES release 4 (Nahant Update 8)
Posts: 416
Blog Entries: 2

Rep: Reputation: 12
yes indeed.
I hope you'll get it working

If it works for you, can you please put this thread as solved
and put your code that you used , so the people after you will also know what to do

Kind regards

Brownie
 
Old 04-30-2011, 12:02 AM   #5
k_balaa
LQ Newbie
 
Registered: Apr 2011
Location: India
Posts: 28

Original Poster
Rep: Reputation: 0
Thanks its worked for me.
rm -f save.38 save.39 save.40 save.41 save.42 save.43 save.44 save.0 save.45 save.46 save.47 save.48 save.49 save.50 save.51 save.52 save.1
 
  


Reply

Tags
auditd


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
Generate audit log every 6 months it_guy Red Hat 2 03-11-2011 08:18 AM
Pam_tally2 lockout in audit log killfast Linux - Security 4 02-16-2011 09:23 PM
[Linux Audit]: Which groups should be allowed to read audit log files? quanba Linux - Security 1 11-15-2010 11:09 AM
audit log rotation jnojr Linux - Security 4 06-02-2009 12:08 PM
Audit Log in AIX? DriveMeCrazy AIX 5 05-16-2004 04:37 PM


All times are GMT -5. The time now is 10:54 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration