Where to find logs older init and dmesg logs

Where to find logs older init and dmesg logs

dmseg and init logs are located in /var/sysvinit/ which span multiple reboots.  For each uptime duration, there are normally 4 files that are created here, for example:

-rw-r--r--  1 root root 65846 Nov 15 18:35 dmesg_log_20221114_182340
-rw-r--r--  1 root root  1193 Nov 14 18:23 sysv_log_20221114_182340_S
-rw-r--r--  1 root root  9945 Nov 15 18:35 sysv_log_20221114_182344_5
-rw-r--r--  1 root root  8330 Nov 15 18:35 sysv_log_20221115_183513_6

  1. dmesg_log_* files contain the same data that would be printed by the dmeg command
  2. sysv_log_* files are related to the respective scripts started or stopped for each runlevel
    1. _S and _6 files are created at startup
    2. _6 is created during a proper shutdown or reboot
  3. Each log is named based on the date and time the log was started