Re: preludedb-admin delete alert
LC Bruzenak <[email protected]> Fri, 28 Jan 2011 16:12:51 -0600
| Newsgroups | gmane.comp.security.ids.prelude.user |
|---|---|
| Message-ID | <1296252771.2483.26.camel@lcb> |
On Wed, 2011-01-19 at 09:28 -0600, Schubert, Aaron wrote: > I issue the command, preludedb-admin delete alert "type=mysql name=xxxxx user=xxxxx pass=xxxxx" --criteria "alert.create_time < 2011-01-19", and it just sits there for days deleting events. In the meantime the database is still growing. By completion of the prelude implementation I will be taking in over 100 million events per day between snort and reading firewall logs. Wow. And I thought I had issues. :) On my HP DL380 4-processor machine with internal RAIDs, I get around 1500 event deletions/second (if I restrict the event count to 100000). I only do this after moving them out of the way for storage. Over a day that is 129M events if it worked nonstop; which of course assumes the input is constant and the rate consistent with the deletions. That many events and I guess it probably is. > > Is there a way to just truncate the tables? If so, what tables do I truncate and which do I leave alone without messing up the system. Can I truncate events up to a certain time? > > Basically is there a quicker way to trim the DB? Although I do not know the answer to this question, in theory the prelude internal commands should be calling the same mysql routines that you could directly. Or maybe you could store a trigger which would delete the oldest events automatically in the DB? Depends on your requirements I guess. Are you able to limit the number of events in the first place to a more manageable number? LCB -- LC (Lenny) Bruzenak [email protected] _______________________________________________ Prelude-user site list [email protected] http://lists.prelude-technologies.com/mailman/listinfo/prelude-user