I have a number of different MAC connections with the router and often it is so many that even when only 1 connection is there the logs for the different clients slows down the router. Is there any way to automatically clear this information every 4 hours using a cronjob?
Do you wan to clean system log every 4 hours? or just wan to clean clients’s statistics?
Pls execute following command by ssh
echo "* */4 * * * /etc/init.d/log restart" >> /etc/crontabs/root # clean system log every 4 hours
echo "* */4 * * * ubus call gl-clients remove_offline" >> /etc/crontabs/root # remove offline clients statistics every 4 hours
echo "* */4 * * * ubus call gl-clients clean_traffic" >> /etc/crontabs/root # remove online clients statistics every 4 hours
/etc/init.d/cron restart
I don’t really want logs at all. I use a no log VPN. I am hoping I won’t be hacked. It’s unlikely I will even have the expertise to read the logs to see what went wrong in a hack.
A bigger concern is that I travel and sometimes leave my router unattended for days at a time in a hotel room and someone could come in and take the logs and use them in a way that compromises me.