Evebox events.sqlite growing large #249
Replies: 5 comments
-
The best way is to enable the retention setting. This can be done with a minimal configuration file of:
This will do its best to delete events older than 7 days. One note is that your database file may not shrink. It should stop growing tho. I've been using SQLite much more in my own usage and the following changes will land in a release soon:
|
Beta Was this translation helpful? Give feedback.
-
Hi Jason, thanks for the info! I created an:
Is that all I need to do then? On a similar note, I was wondering though - could I stop evebox, then delete the entire contents of my
I don't care if I lose all of the old data. I don't mind starting over. But I don't know if it's safe to delete everything so that evebox starts over or if it would 'break' evebox. Thank you! |
Beta Was this translation helpful? Give feedback.
-
You'll want to make sure that EveBox is reading that configuration file by adding But anyways, yes. You can stop EveBox, delete |
Beta Was this translation helpful? Give feedback.
-
Oops, I misspoke about the location. All the sqlite files are actually in Thank you for the tip on what to delete ( Before I forget, I want to thank you so much for Evebox! I've experimented with Wazuh and Elasticsearch a bit, but they seem so complicated, bloated, and have no colors. I love the simplicity, speed, and usability of Evebox. So thank you for all you do Jason! Have a great weekend! |
Beta Was this translation helpful? Give feedback.
-
The unit file would be in /lib/systemd/system... Some people modify them, some don't. But it looks like you stuck with the default Debian package install which is ideal. The sqlite mode has been a little neglected, even though we use it all the time in Suricata training. I'm working on making it more of a first class option, as I think it makes sense for small/home deployments. Thanks for the kind words. |
Beta Was this translation helpful? Give feedback.
-
My events.sqlite is at a little over 100GB now, which is quite a chunk of the machine's hard disk.
Is there a proper way of keeping this under control? I would like it to not get any larger than say 10GB. It's running on the same physical box that Suricata is running and I just learned about logrotate for Suricata so I've got that working and under control now. So now I'd like to get Evebox under control. Do I use logrotate for Evebox too? I have a feeling that won't work because I know that events.sqlite is not just a flat, log file, but an actual SQLite database so not sure how to properly handle this kind of thing.
Any examples would be awesome. Maybe something for the documentation too?
Jamie
Beta Was this translation helpful? Give feedback.
All reactions