NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
dpcsret
Jun 26, 2024Aspirant
Accessing journalctl command on ReadyNAS 102
I have enabled SSH on my ReadyNAS and granted the default admin command SSH access. I can SSH to the NAS (using Putty) and logon with the admin command. I am issuing the command journalctl --disk-u...
- Jun 26, 2024
dpcsret wrote:
I am issuing the command journalctl --disk-usage. I am getting an error as seen in the screen print that says the account does not have permissions to access the files due to insufficient permissions.
Log in as root, using the NAS admin password.
This command only tells you how much space the log is using.
root@NAS:~# journalctl --disk-usage Archived and active journals take up 50.1M on disk. root@NAS:~#
StephenB
Jun 26, 2024Guru - Experienced User
dpcsret wrote:
I am issuing the command journalctl --disk-usage. I am getting an error as seen in the screen print that says the account does not have permissions to access the files due to insufficient permissions.
Log in as root, using the NAS admin password.
This command only tells you how much space the log is using.
root@NAS:~# journalctl --disk-usage
Archived and active journals take up 50.1M on disk.
root@NAS:~#
dpcsret
Jun 26, 2024Aspirant
Ahh.. Thanks. That did the trick. I am trying to delete old logs - I clicked the CLEAR LOGS from the admin page but when I dumped the logs I still see old entries in some log files like smdb.log and smtp.log. I was going to issue as found in this article How To Clear The systemd journal Logs (journalctl) - Linux Uprising Blog
sudo journalctl --rotate
sudo journalclt --vaccum-time=1s
- dpcsretJun 26, 2024Aspirant
No real reason.. maintenance. Emptying logs so any entries are more current. Size is not an issue - only 16MB used.
Is there a reason this is not a good idea ? I have log dump zip files for prior reference if need be.
- StephenBJun 26, 2024Guru - Experienced User
dpcsret wrote:
Is there a reason this is not a good idea ?
Generally if something does go wrong, it's best to have all the information. It's easier to do this from one log zip, and not piece things together.
If you do want to clear them, you can also do this from the NAS web ui.
Related Content
NETGEAR Academy

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