Is it possible to monitor the /var/log/secure or /var/log/message using watch command

watch

When I was trying to monitor the /var/log/secure or /var/log/message using watch command the output showed as /var/log/messages: Permission denied. Is it possible to monitor the /var/log/messages and /var/log/secure using watch command?

Best Answer

Yes it is, but note that regular users don't have permission to read /var/log/messages and /var/log/secure.

sudo watch tail /var/log/messages 

worked fine here when I tried.

Related Question