LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Audit Log (https://www.linuxquestions.org/questions/linux-newbie-8/audit-log-877796/)

k_balaa 04-29-2011 05:14 AM

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...

brownie_cookie 04-29-2011 05:18 AM

something like
Code:

find /var/log/audit.d/ -name "save.*" -exec rm -f {} \;

k_balaa 04-29-2011 06:00 AM

So simply i can use rm
ok i will check,
thanks

brownie_cookie 04-29-2011 08:10 AM

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

k_balaa 04-29-2011 11:02 PM

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


All times are GMT -5. The time now is 12:15 AM.