find ${path_to_dir}/* -type d -mtime +0 -exec rm -rf {} \;

For example: path_to_dir=/var/log/mlogc/data

Gr., John

From: Reuben Popp []
Sent: Friday, March 07, 2014 4:59 PM
Subject: [mod-security-users] Daily/Weekly cleanup of mlogc CollectorRoot?

Hey all,

Does anyone know of any scripts or have any suggestions on best practices for cleaning up the empty directories left by mlogc after shipping events off to the collector?  That is, assuming that KeepEntries is set to 0.

As always, TIA!