You can find several log files in "/var/log" as you know. To look for warnings/errors that you are interested in, you can simply perform a "search or scan" by using "grep" command as shown below:
Code:
root@localhost ~]# grep 'error' /var/log/messages | tail -n 2
Feb 3 11:00:49 localhost NetworkManager[1226]: <error> [1328247049.314141] [nm-manager.c:1312] user_proxy_init(): could not init user settings proxy: (3) Could not get owner of name 'org.freedesktop.NetworkManagerUserSettings': no such name
Feb 3 11:00:49 localhost NetworkManager[1226]: <error> [1328247049.526871] [nm-manager.c:1312] user_proxy_init(): could not init user settings proxy: (3) Could not get owner of name 'org.freedesktop.NetworkManagerUserSettings': no such name
[root@localhost ~]#
Code:
grep "keyWord or string" fileName
Use "grep -i" to make a case-insensitive search.
Learn more by running this command:
You may want to look for application/software/service specific log files first by looking at their corresponding directories/log files inside "/var/log/".
Run this command:
Code:
dmesg | grep -i error
Code:
[root@localhost ~]# dmesg | grep -i info
EXT4-fs (sda2): INFO: recovery required on readonly filesystem
[root@localhost ~]#