Open-AudIT https://www.open-audit.org/phpBB3/ |
|
MySQL question https://www.open-audit.org/phpBB3/viewtopic.php?f=10&t=4806 |
Page 1 of 1 |
Author: | el_geto [ Tue Mar 29, 2011 4:36 am ] |
Post subject: | MySQL question |
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 |
Page 1 of 1 | All times are UTC + 10 hours |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |