Menu Close

12 Important Linux Log Files You Should Keep Track of

I and I’m using Debian Wheezy on an HP Pavilion dv7 laptop that constantly freezes and needs to be rebooted. One day it didn’t even load the operator body, but I must not have used it, so I can’t ask what error it showed. During the actual installation of Windows 7, Windows would continually fail to boot, returning the user to an “Attempting Repair” interface that did something for a few minutes and then told them that Windows couldn’t fix the problem.

This prospect leads me to think of a issue and I seem to be wondering if there is something in /var/log or somewhere else that might contain information about what is going on. , or if there’s a test I could run and investigate.

grep -i "error" /var/log

Full output here. The only line I could understand and the fact that I think might have something to do with the problem is

/var/log/dmesg.0:[11.[drm:radeon_pci_probe]632723] *ERROR* Radeon kernel mode settings for R600 or higher require non-free Linux firmware.
lspci | grep -i vga
de>00:02.0 VGA-compatible controller: The Intel generation also has an integrated graphics controller for the main processor family (version 09)
01:00.0 VGA compatible controller: Advanced Devices micro [AMD] née ATI Whistler XT [AMD Radeon HD 6700M Series]

And System > System Settings > Details > Graphics indicates that Intel(R) Sandybridge Mobile is being used. Guess so far I “solved” the error by using the integrated graphics card?

Where is the error log in Linux?

To search for files, use the grep command format [options][pattern][file], where “pattern” is exactly what you want to find. For example, to find an explicit “error” in a log file, your company would type grep “error”junglediskserver. record , and all lines containing “error” are displayed on the screen.

/var/log/syslog.1:16 Apr 20:14:09 magui core: [1.087417] pci0000:00: ACPI _osc request failed (AE_ERROR), control mask returned: 0x1d
/var/log/syslog.1:19 Apr 20:14:09 magui kernel: [8.510757] ata1.00: irq_stat 0x08000000, fatal UI error
/var/log/syslog.1:19 Apr 20:14:09 Magui kernel: [8.510810] ata1: SError: UnrecovData 10B8B BadCRC
/var/log/syslog.1: Apr 19 20:14:09 magui core: [8.510914] res 40/00:08:00:76:14/00:00:00:00:00/40 Emask 0x10 (ATA shuttle error)
/var/log/syslog.1: Apr 19 20:14:09 magui core: [8.511121] 40/00:08:00:76:14/00:00:00:00:00/40 res Emask 0x10 (ATA bus error)

How do I check hardware logs in Linux?

Linux logs are displayed in the cd /var/log command. You can then type ls to view the tree stored in that directory. One of the most important logs to monitor is the system log, which logs all messages except those related to authentication.

But I don’t really understand what that means, so I’m a little confused. What should I look for?

What Are Linux Tree Files

How do I check hardware errors in Linux?

lscpu. The lscpu command displays information about the CPU and processors.
lshw – equipment list.
hwinfo – information about the equipment.
lspci – PCI list.
lsscsi – list of SCSI devices.
lsusb – List of USB 2.0 buses and device information.
List of lsblk for block devices.

Log files are a specificThe records that Linux keeps for administrators to keep track of all important events. They contain messages related to the server, including the core, agencies, and applications running on it.

Linux provides a central repository for log versions, which can be found in the /var/log directory.

How do I troubleshoot hardware problems in Linux?

Quick diagnostics of devices, modules and drivers. The first step in troubleshooting is usually to look at the list of accessories installed on your Linux server.
Dig into a few magazines.
Network behavior analysis.

Log files created in a Linux environment can generally be divided into four categories:

  • Application logs
  • Event logs
  • Service logs
  • Why Newspapers?
  • Linux System Monitor Checks files
  • By monitoring Linux log file types, you can get detailed information about server performance, security, error messages, and common issues. If you want a proactive rather than a reactive approach to management, 100% standard parsing of the server log file is required. In short,

    Log files allow you to anticipate impending problems before they actually occur.

    What Linux Stores In watch


    Tracking and analyzing them all can be a daunting task.

    A small number of jurcash sometimes makes it difficult to study and find the right file containing the right information.

    To help you understand this idea, I’m really going to introduce you to some of the most important Linux log data you need to watch out for.

    Note. Please note that these are not all exhaustive lists, just a new subset of important PC logs that matter the most. The more you can process, the better for your awesome server health. Below is the bare minimum you need to keep your computer screen from going blank.

    /var/log/ Messages

    What Is Written Here? :

  • This log trigger contains general system logs.
  • They are mainly used to store informative and therefore non-critical system messages.
  • On Debian-based systems, the free information in /var/log/syslog serves the same purpose.
  • How Can I Use These Protocols? :

  • This can sometimes be monitored for non-kernel startup errors, application satisfaction errors, and messages thatare actually registered during system startup.
  • This was the first log file that Linux administrators could check if something was wrong.
  • For example, you have a number of problems with your sound card. Check if something went wrong while booting the system. You can also view advertisements stored in this log file.
  • /var/log/auth.Log Registered

    What’s Here?

  • All events related to authentication on Debian and Ubuntu servers are logged here.
  • If you are looking for information related to the user authorization mechanism, you can find it in this document file.
  • How Can I Use These Logs? :

    Do you suspect a security breach has occurred on your server? Notice a particularly suspicious javascript file where you shouldn’t do this? If so, find this Key Facts log file as soon as possible!

  • Investigate failed login attempts
  • Investigate brute-force attacks and other vulnerabilities useful to the user authorization mechanism.
  • Logs/var/log/secure

    What’s Here?

    RedHat and CentOS based systems use this log file from /var/log/auth.log.


  • It is mainly used to track the main usage of authorization systems.
  • Stores all security-related messages, including permission errors.
  • It also monitors sudo logins, ssh logins, and other errors logged by the configuration security daemon.
  • How To Create Consumption Journals? :

  • You can log all of these user authentication events here.
  • This log file can provide specific information about unauthorized or aborted login attempts.
  • Can be very useful for detecting possible hacking attempts.
  • It also stores information about successful logins and keeps track of actual user activity.
  • /var/log/boot.log

    What Is Signed Here?

  • The system initialization script, /etc/init.d/, sends all boot messages to its log file.
  • This is a repository of information and messages related towith boot recorded during system boot.
  • How Can I Use These Logs? :

  • You should analyze this type of log to investigate issues related to improper shutdown, unscheduled restarts, or even boot failures.
  • It can also be useful to positively evaluate the amount of system downtime caused by an unexpected shutdown.
  • /var/log/dmesg

    What Is Signed Here?

  • This log file contains kernel ring buffer messages.
  • Here you will find information about PC peripherals and their drivers.
  • When the kernel detects homemade physical devices with the server during the boot process, it captures the status of key devices, hardware errors, and various general messages.
  • How Can I Use These Logs? :

  • This log file is mainly useful for dedicated server users.
  • If the selected hardware is malfunctioning or not recognized, you can use this log file for diagnostic purposes problems.