Open-AudIT

What's on your network?
It is currently Mon Jul 23, 2018 6:17 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
Contributor

Joined: Wed Apr 07, 2010 8:04 am
Posts: 101
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

_________________
Old OA Setup: 500 Windows 7 workstations & 200 Apple OSX with OA v1.5.2 on Windows Server 2003 and WAMP 2
New OA Setup: 100 Windows servers with OA 2.2 on Windows Server 2016 and WAMP 3


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:  
cron
Powered by phpBB® Forum Software © phpBB Group