How do I export logs from CLI?
-
I understand that you can manually set the number of log records that show up in the GUI, but I set it to 2000 and it hangs my browser for a bit which is annoying. I want to just dump the entire log so that I can run queries locally.
I SSH'ed into the pfsense box using an admin user I setup from the GUI interface (made sure the user is added to the admin group) and the tried to view the logs with:
vi /var/log/system.log
but it returned permission denied. I noticed if I tried doing su command is returns 'su: sorry' , also sudo command does not exist.
So how can I get permission to view/copy the /var/log/system.log file from CLI?
Thanks!
-
@spookymonkey
Use root and the password you have set for admin.
You can also download the logs using SCP. -
@viragomann Ah, okay got it. I thought I could do it with the admin user I setup through the GUI but I had to SSH into the machine using root@192... all good now, thanks!