Open-AudIT

What's on your network?
It is currently Wed Jan 24, 2018 9:52 am

All times are UTC + 10 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: MySQL question
PostPosted: Tue Mar 29, 2011 4:36 am 
Offline
Helper

Joined: Wed Apr 07, 2010 8:04 am
Posts: 99
Location: Boston, MA
The system_audits and graph_disks seem to be ballooning out of control.

I have a couple of labs and students logon to them multiple times a day, so these two tables grow over time with every audit (runs at logon), so I'm looking for an efficient way to reduce the size of the tables and at the same time keeping some of the historical data.

I think the best approach would be to keep only the last 30 records of each audited system in system_audits and delete anything older than that.

Can anyone translate this into SQL query for me?

Thanks

_________________
OA v1.5.2 on Windows Server 2003 and WAMP 2.0 (Apache 2.2.22, PHP 5.4.3, MySQL 5.1.36).
OA v1.5.3 on Linux
Auditing 500 Windows 7 computers via GPO, 200 Apple OSX 10.8/10.9/10.10


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC + 10 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group