From the course: Linux: Kernels and Logging for System Administration

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

View systemd journal

View systemd journal - Linux Tutorial

From the course: Linux: Kernels and Logging for System Administration

Start my 1-month free trial

View systemd journal

- [Instructor] The second method of logging data in Enterprise Linux, is a service called Journald, which is part of Systemd. The Journal is binary file stored in /var/run which is a virtual file system in RAM. Everything in this file system disappears in reboot, thus the Journal data by default is not persistent. Because it's in RAM, it also has a fixed size based on the amount of memory the system has. The data in the Journal is structured and indexed so it can accessed very quickly. If persistence is necessary, Journald can be configured to be persistent, or even forward Journal data to rsyslog. To view the Journal entries we'll use Journal CTL. In a terminal, type in sudo, space, journal ctl, and hit enter. If prompted, type in your password. Typing Journal CTL in without any arguments gives us all Journal entries. If we want to be more specific and only show the Journal entries from the kernel, we can specify the dash K option. Press Q to quit, bring your line back, and add a…

Contents