Introduction

This tutorial explains the administration of the Linux system with the system logs. The system log is a file that contains information about events that happened on the system during runtime. This tutorial shows you the following Linux logging basics:

Prerequisite

You will need:

Step 1 — Finding Linux system logs

The Ubuntu system stores all system logs into directory /var/log. Let's look at some most essential log files and their meaning, and what they stores:

This directory contains also various application logs. For example, if your distribution contains Apache or MySQL then their logs are also there.

You can view content of this directory with following command:

$ ls /var/log