You arrive in the morning and find the server off, or find that it restarted during the night. The application seems to be running, but there is a gap of a few hours and everyone asks the same question: why did the server shut down? It is easy to answer "probably the power" or "I think it was an attack", but the right answer lies in the records, not in guesses. This guide explains step by step how to find the cause of a shutdown or restart from the logs, what each trace does and does not prove, and how a good technical inspection is written.
First moves made in a panic often erase the most valuable evidence. Keep this order:
A server stops in one of two ways. In a clean shutdown the operating system receives the shutdown command, stops services in order and writes a "shutting down" trace to the log. In a sudden stop, power, hardware, memory exhaustion, a kernel error or an event in the virtualization layer gives the system no chance to shut itself down; the log is cut in the middle of a sentence. The first question of an inspection is therefore: does the end of the previous boot's log contain a shutdown trace?
On Linux you can see this with these commands:
journalctl --list-boots
journalctl -b -1 -n 40 --no-pager
last -x reboot shutdown | head
journalctl --list-boots shows how many times the system has booted and the first and last record time of each boot. -b -1 returns the previous boot; if its last lines contain an expression such as Reached target Shutdown or System is powering off, the shutdown was started from the inside. If you see a reboot ... - crash line in the last -x output, the system stopped by crashing.
On Windows the equivalent is the event log:
Get-WinEvent -FilterHashtable @{LogName='System'; Id=41,1074,1076,6005,6006,6008} -MaxEvents 30 |
Select-Object TimeCreated, Id, ProviderName, Message
Event 1074 shows that a user or process started a shutdown or restart, and 6006 shows that the event log service stopped cleanly. Events 41 (Kernel-Power) and 6008 say that the system restarted without a clean shutdown. The important point: event 41 does not tell the cause, it only tells that the stop was sudden.
The table below summarizes common causes and the record in which each leaves a trace. A single trace does not count as a certain cause; the reasons are explained below.
| Possible cause | Trace to look for | Does it prove the cause by itself? |
|---|---|---|
| Memory exhaustion (OOM) | "Out of memory" and "Killed process" lines in the kernel log, close to the shutdown time | Proves that a process was killed; explains a full stop only together with other records |
| Disk error or file-system problem | "I/O error", "remounting filesystem read-only", a SMART warning | Proves a disk problem; whether it led to the shutdown is judged by time correlation |
| Power loss | A power-loss record in the hardware (BMC) event log, a log cut off abruptly | Strong hint when backed by a BMC record; a cut-off log alone does not prove power loss |
| Kernel panic or hardware error | "Kernel panic", "Machine check", "Hardware Error" lines | Yes, if the record exists it shows the cause directly |
| Restart of the host (virtualization server) | No clean-shutdown trace inside the virtual server; a restart at the same time in the host records | Time correlation is a strong hint; someone looking only from the inside cannot see it |
| Management action (power off or restart from the panel) | Management-layer task record, the account that made the action | Proves the action was requested; who asked and why is verified separately |
| Scheduled task or update | Update or installation records right before the shutdown, event 1074 | Explains a clean shutdown |
The strongest tool of a shutdown inspection is the timeline. You line up the records inside the server, on the host and in the management layer on the same axis in the same time zone. A story like this emerges: "memory exhaustion began at 04:32, the VM's log was cut at 04:47, the host restarted at 04:50 and the server came up at 04:51". Each event is labelled either evidenced or assumption.
Thousands of failed SSH or RDP attempts reaching a server are a real security problem; you should restrict access by IP and use keys instead of passwords. But these attempts do not shut a server down. Finding such lines at the time of the shutdown is a coincidence; they exist on every server every day. A report should state separately that "these attempts are not the cause of the shutdown".
Dozens of virtual servers run on the same host. A memory-exhaustion line in the host's log sometimes kills another virtual server. In an inspection the line should not be counted as a root cause unless its relation to your server is shown.
A customer saying "it shut down at 4 at night" and the log showing "01:00" can be the same event. A comparison made without knowing this can even lead to the conclusion that the shutdown "did not happen".
Run your server in Istanbul with KVM virtualization
In a data center built to Tier 3 standards, with a 1 Gbps port and 24/7 support.
See the VDS plansOn a virtual server (VDS) a shutdown can start in two places: inside the server or on the host beneath it. When the server shuts down, the log inside it is cut off too; looking only from the inside therefore does not show the cause. The records of the host and the management layer have to be read together with the log inside. On a physical server there is an extra source: the hardware event log of the management controller (BMC/IPMI), which works independently of the operating system. Power loss, overheating and power-supply failure are often recorded here before the operating system can even notice. We explained how to reach this controller from the panel of your dedicated server in our dedicated server checklist guide.
A technical inspection report does not have to say "we found the cause"; what it has to do is separate what is evidenced, what is a possibility and what is unknown. A good report contains:
If several candidates fall in the same window, a good report does not pick a single cause. Saying "memory exhaustion and a host restart are in the same window; one may be the result of the other, but the order cannot be proven from these records" is worth far more than a false certainty.
The SistemDC support team carries out a records-based technical inspection for the shutdown, slowness, access or service problems you report in a support request. The process is as follows:
The analysis is carried out on SistemDC's own servers by rule-based software; the collected data is not transferred to a third-party artificial-intelligence service. Approved reports are kept for at most 3 years from approval, and unapproved drafts for 60 days. See the technical inspection report document for the details of the scope. This information is not legal advice; the binding texts are the Service and Use Agreement and the privacy agreement.
The right information shortens an inspection by hours:
If you cannot reach your server and are only looking for a rescue mode and console path, you can follow the steps in the same guide. If you are experiencing slowness or packet loss rather than a shutdown, the ping and MTR guide is the right first step.
Storage=persistent setting keeps the logs of earlier boots.Reach hardware event logs on a dedicated server too
Reach your server even when the operating system does not start, with IPMI/BMC and a KVM console from the browser.
See the dedicated serversWhat should I do first when my server shuts down?
First tell apart a server that is really off from one that is merely unreachable, note the time of the shutdown and its time zone, and before powering it on, save the console screen and the latest logs if you can.
What does a missing clean-shutdown record mean?
If the system log ends without any trace of a shutdown or reboot command, the server was not shut down from the inside. It may point to a power, hardware, memory-exhaustion or host-level interruption, but it does not show the cause by itself.
What does event 41 Kernel-Power show on Windows?
It shows that the system restarted without being shut down cleanly. The cause is not written in the event itself; it must be read together with other records from the same time and with hardware or virtualization-layer records.
Can thousands of failed SSH attempts shut my server down?
Failed login attempts alone do not shut a server down. They are a real problem and need countermeasures, but they should not be counted as the evidenced cause of a shutdown.
Can the cause of a shutdown always be found?
No. Records sometimes show several possibilities or prove none. A good inspection does not hide this; it writes what is evidenced, what is possible and what is unknown separately.
Why is a view from inside a VDS incomplete?
When a virtual server shuts down, the log inside it is cut off too. To see whether the shutdown started on the host or inside the server, the records of the virtualization layer are needed as well.
Does a SistemDC technical inspection look at the files on my server?
No. Files, databases and e-mails are not read. The inspection looks only at operating-system event logs and service, disk, network and resource status, using read-only methods.