Read log file in shell
-
How can I read log files in shell?
clog show error:
[2.3.5-DEVELOPMENT][tomasz@pfSense.mojafirma]/var/log: clog filter.log clog: ERROR: could not open filter.log (Permission denied)
Thanks for help.
-
That should work. Were you logged in as an admin user?
Does the log file exist?
Steve
-
[2.4.4-RELEASE][admin@pfsense]/var/log: ls -alg filter.log
-rw------- 1 root wheel 511488 Apr 25 08:29 filter.log
[2.4.4-RELEASE][admin@pfsense]/var/log:Bet you can run the command as your admin user, the file is only readable by root
What does the ID command output?
-
Also check a question from yesterday : https://forum.netgate.com/topic/142797/monitor-firewall-log-in-real-time-with-ssh-solved
-
2.3.5-dev is, um, not recommended!
-
Upgrade. Use
sudo
.