Open mallorybobalice opened 8 years ago
i suppose, there's always the 'trusty' for i in {a..b}; do curl http://xxx:8080/api/tasks/delete/$i/; done after disabling the api limit in conf/api.conf for delete api and the rate limiting for it (temporarily of course)...
Hello, I submitted a pull request with a script to clean data. https://github.com/spender-sandbox/cuckoo-modified/pull/180
I have the exact same issue.
Check in my repo in utils you have a tool for it
Thanks I'll give that a shot.
hi there.
python cuckoo.py --delete-older-than-days 21
so. couple of problems there's a missing import at the top in /lib/cuckoo/core/startup.py
from datetime import timedelta
the second problem is that it's failing to drop the tasks from the Db (or disk) for me after :/
removing {'info.id': 1474} from analysis db failed to remove faile task {'info.id': 1474} from DB removing {'info.id': 1469} from analysis db failed to remove faile task {'info.id': 1469} from DB removing {'info.id': 1470} from analysis db (for all the tasks in question )
=( not really sure why. the task is there db.analysis.find({"info.id": 1469}) shows it,
also, there's working code in modules/reporting/retention.py . (i can see that takes care of mongo and data, just a bit unclear if it works retrospectively. doesn't seems to, or maybe I'm doing something wrong?)