[vc_row][vc_column][vc_column_text]
In this article we’ll guide on you how to check your server’s log files in windows and linux system.
Microsoft Windows Server
We recommend that you use the Event Viewer to evaluate the log files. To open the Event Viewer, press the key combination Win + R. Then enter the command eventvwr and press Enter.
In the navigation bar on the left, click Windows Logs. Then check the following logs: Application, System and Security
Linux
Save the file /var/log/warn as a duplicate in the /tmp directory. To do this, enter the following command:
[simterm]cp /var/log/warn /tmp[/simterm]
Then check the file.
To search the messages logged during the last boot for entries, you can use the following commands:
This command searches the boot log file for lines containing the strings Erro or erro.
[simterm]dmesg | grep [Ee]rro[/simterm]
This command searches the boot log file for lines in which the strings Fault or fault are included.
[simterm]dmesg | grep [Ff]ault[/simterm]
This command searches the boot log file for lines which contain the strings Defect or defect.
[simterm]dmesg | grep [Dd]efect[/simterm]
This command searches the boot log file for lines in which the strings Bad or bad are included.
[simterm]dmesg | grep [Bb]ad[/simterm]
This command searches the boot log file for lines containing the strings Fail or fail.
[simterm]dmesg | grep [Ff]ail[/simterm]
This command searches the boot log file for lines that contain the strings Incorrect or incorrect.
[simterm]dmesg | grep [Ii]ncorrect[/simterm]
This command stores all messages which were logged during the last boot process in the directory /tmp.
[simterm]dmesg > /tmp/dmesg[/simterm]
/var/log/messages and /var/log/syslog
In Ubuntu and Debian, the file /var/log/messages will records almost all events. This is the system log of Linux. This file records a variety of events, such as system error messages, changes in the network configuration, etc. In this log file, each entry is listed with a timestamp.
In CentOS, this information is listed in the file /var/log/syslog.
kern.log
Messages from the kernel can be found in the kern.log file. This file also contains older messages and messages resulting from iptables rules, for example. The kern.log file can be found in the /var/log directory.
[/vc_column_text][/vc_column][/vc_row]