Published a year ago
Published a year ago
xiaobing.wang
Updated a year ago
0
SafeLine WAF continuously records various security data while protecting your website. There are two main "repositories" that occupy space:
/data/safeline/resources/postgres/data/var/lib/dockerOperate through the web interface, safe and intuitive:
⚠️ Note:
- Cleanup time depends on log volume, temporary lag may occur, don't repeat operations!
- Logs cannot be recovered after cleanup!
If log volume is extremely large or console cleanup fails, use command for forced cleanup:
1# Clean all security logs (immediate effect, irreversible!) 2docker exec safeline-mgt cleanlogs
Operation example:
1# After executing the cleanup command, you'll see the following information 2[INFO] Clearing logs... 3[INFO] Truncating detect log... 4[INFO] Truncating event... 5[INFO] Truncating statistics... 6[INFO] Done
<none> tags (usually old versions or dangling images):1bash -c "[ $(docker images | grep chaitin[/-]safeline | grep -c none) == 0 ] || docker images | grep chaitin[/-]safeline | grep none | awk '{print \$3}' | xargs docker rmi"
A: No! Only historical records are cleaned, real-time protection is unaffected
A: Regular database backups or snapshots can help recover
A: No! The command specifically deletes SafeLine images, other software is unaffected
Following these steps, you can quickly free up SafeLine WAF's disk space! If you still encounter issues, it's recommended to save screenshots of any error messages and contact official technical support.