It appears you have not registered with our community. To register please click here ...

Author Topic: Auditd service  (Read 1478 times)

glenns

  • Newbie
  • *
  • Posts: 2
  • Karma: +10/-0
    • View Profile
    • Email
Auditd service
« on: August 18, 2005, 01:59:08 PM »
How do I get the auditd process to periodically clean up the logs in the /var/log/audit.d directory.  I\'ve had an issue where the /var directory was filling up and this was due to too many large files in the aforementioned directory.

Thanks

dynaweb

  • <b>Canine Deamon</b>
  • Administrator
  • Sr. Member
  • *****
  • Posts: 493
  • Karma: +10/-0
  • Generic personal text here ...
    • MSN Messenger - danno_d_manno@yahoo.com
    • View Profile
    • DynaWeb Designs
    • Email
Auditd service
« Reply #1 on: August 18, 2005, 08:02:00 PM »
I would try a simple one-line command and program it into cron to your liking.  For example, if you have a directory /var/log/audit.d and wanted to clean it out once a week, just enter into cron weekly this command:
Code: [Select]
rm -Rf /var/log/audit.d/*
which will clean out the contents of that directory but leave the folder there intact.
Those who cannot learn from history are doomed to repeat it. -- Linux learns.

zelo

  • Super Moderator
  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 264
  • Karma: +10/-0
    • ICQ Messenger - 233717
    • MSN Messenger - webmaster@zelo.com
    • Yahoo Instant Messenger - zelo@yahoo.com
    • View Profile
    • http://www.zelo.com
    • Email
Auditd service
« Reply #2 on: August 18, 2005, 08:10:47 PM »
Is there an automated way to do this?

adb22791

  • Former Moderator
  • Full Member
  • ***
  • Posts: 149
  • Karma: +10/-0
    • ICQ Messenger - 226098809
    • View Profile
    • Email
Auditd service
« Reply #3 on: August 18, 2005, 09:11:29 PM »
Quote from: dynaweb
I would try a simple one-line command and program it into cron to your liking.  


Automate it with Cron  :)
-Alex

dynaweb

  • <b>Canine Deamon</b>
  • Administrator
  • Sr. Member
  • *****
  • Posts: 493
  • Karma: +10/-0
  • Generic personal text here ...
    • MSN Messenger - danno_d_manno@yahoo.com
    • View Profile
    • DynaWeb Designs
    • Email
Auditd service
« Reply #4 on: August 18, 2005, 09:25:52 PM »
Yeh, cron is available through your control panel.  /var... is a root or admin owned folder, so you will most likely need to run the command as root user for this case.
Those who cannot learn from history are doomed to repeat it. -- Linux learns.

glenns

  • Newbie
  • *
  • Posts: 2
  • Karma: +10/-0
    • View Profile
    • Email
Auditd service
« Reply #5 on: August 19, 2005, 07:07:23 AM »
Thanks for your help everyone.

bunnyrage

  • Newbie
  • *
  • Posts: 15
  • Karma: +10/-0
    • View Profile
    • Email
Auditd service
« Reply #6 on: September 29, 2005, 04:43:50 PM »
you could write a shell script to cron

you could have it cp the files you want onto a separate file or ftp server

then rm specific folders
you may have to tell rm in your script to force -r so it will enter the dir
Kris Rosario
unixgeek@mail.com

 

Related Topics

  Subject / Started by Replies Last post
0 Replies
188 Views
Last post December 03, 2005, 08:44:38 PM
by Linux News
0 Replies
188 Views
Last post December 24, 2005, 03:35:02 AM
by Linux News
0 Replies
1699 Views
Last post August 10, 2008, 12:39:11 PM
by dynaweb