I would like to delete the log events 1 year after getting it, but I can’t find any way to do it. thanks for enlightening me.
I think you can just remove the entire log database and it will regenerate itself. Might also need a restart of log service, not sure.
Via cli to delete run:
rm /log/log.db
There is also ubus commands for working with logs database:
ubus -v list log
1 Like
Hello,
You can delete your logs by connecting to the router’s SSH via CLI and utilizing the commands recommended by @pwsh. Follow these steps:
- SSH into your router.
- Navigate to the log folder using the command:
cd /log/
. - Execute the command:
rm log.db
. - Restart the events log service with the command:
/etc/init.d/eventslog restart
.
Let me know if you have additional questions!
Best Regards,
This topic was automatically closed after 15 days. New replies are no longer allowed.