Aug 30, 2009 10:08 AM
How to purge events history
-
Like (0)
"nyeates" wrote:
I think it runs immediatly, though I have seen it not run (or not finish and not commit?) when there are large numbers of historical rows.... say millions. This is just too many rows and so you can go in on the backend of the machine
mysql (get to the mysql prompt)
use events;
DELETE FROM history WHERE stateChange < DATE_SUB(NOW(), INTERVAL 90 DAY);
You might want to test that with a select first, I have not tested the above
Follow Us On Twitter »
|
Latest from the Zenoss Blog » | Community | Products | Services Resources | Customers Partners | About Us | ||
Copyright © 2005-2011 Zenoss, Inc.
|
||||||||