NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
aks-2
Aug 25, 2021Apprentice
Correct way to delete all logs
I am downloading the full logs from the ReadyNAS 214 dashboard. After that, I 'clear logs', which does remove all entries displayed on the dashboard. However, I noticed that many logs remain intact o...
- Aug 26, 2021
aks-2 wrote:
I am not so worried about free space, just want to avoid issues later - so this is just maintenance:
> df Filesystem 1K-blocks Used Available Use% Mounted on udev 10240 4 10236 1% /dev /dev/md0 3862208 629072 3007244 18% / tmpfs 1032992 12 1032980 1% /dev/shm tmpfs 1032992 664 1032328 1% /run tmpfs 516500 1656 514844 1% /run/lock tmpfs 1032992 0 1032992 0% /sys/fs/cgroup /dev/md125 8775854208 5654598068 3119758764 65% /data
Well, you could clear things out more completely with journalctl. But maybe first use journalctl --disk-usage to see how much space you are actually talking about. My logs haven't been cleared for quite a while, and I am still only using 36 MB.
If you do want want to empty them more agressively, you'd use journalctl --rotate followed by journalctl --vacuum-time=1s. But personally I'd just leave well enough alone.
aks-2
Aug 26, 2021Apprentice
I am not so worried about free space, just want to avoid issues later - so this is just maintenance:
> df Filesystem 1K-blocks Used Available Use% Mounted on udev 10240 4 10236 1% /dev /dev/md0 3862208 629072 3007244 18% / tmpfs 1032992 12 1032980 1% /dev/shm tmpfs 1032992 664 1032328 1% /run tmpfs 516500 1656 514844 1% /run/lock tmpfs 1032992 0 1032992 0% /sys/fs/cgroup /dev/md125 8775854208 5654598068 3119758764 65% /data
StephenB
Aug 26, 2021Guru - Experienced User
aks-2 wrote:
I am not so worried about free space, just want to avoid issues later - so this is just maintenance:
> df Filesystem 1K-blocks Used Available Use% Mounted on udev 10240 4 10236 1% /dev /dev/md0 3862208 629072 3007244 18% / tmpfs 1032992 12 1032980 1% /dev/shm tmpfs 1032992 664 1032328 1% /run tmpfs 516500 1656 514844 1% /run/lock tmpfs 1032992 0 1032992 0% /sys/fs/cgroup /dev/md125 8775854208 5654598068 3119758764 65% /data
Well, you could clear things out more completely with journalctl. But maybe first use journalctl --disk-usage to see how much space you are actually talking about. My logs haven't been cleared for quite a while, and I am still only using 36 MB.
If you do want want to empty them more agressively, you'd use journalctl --rotate followed by journalctl --vacuum-time=1s. But personally I'd just leave well enough alone.
- aks-2Aug 26, 2021Apprentice
Thanks again:
# journalctl --disk-usag Archived and active journals take up 52.0M on disk.
I don't think I need to worry :smileyhappy:!
Thanks a lot for the pointers.
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!