Understanding the Problem: System Information Collection-EX342

In order to troubleshoot the problem you will have to understand it by collecting as much information as possible on the who and where and what.

There are different tools available at your disposal to do that on the Linux system such as :


Enabling SYSTEM JOURNAL Logs persistence and Past Boots Logs

  1. Create the Journal Log Directory

sudo mkdir -p /var/log/journal

2. Edit the journal configuration  by removing the comment at the beginning of   storage line then make it equal to persistent  then save the file.

sudo vim /etc/systemd/journald.conf

Reboot the system or kill the journald process

Lets check the folder contents

cd /var/log/journal/

total 0
drwxr-sr-x+ 2 root systemd-journal 28 Dec  5 03:27 08a8249fd77e46f0a0e86bc0d531f098

2. SOS tool

SOS tool can be used to generate reports about the system with different modules.Its one of the system information collection tools that used to gather package diagnostic and support data on your Linux system.

To Install sosreport

# yum install sos xfsprogs -y

Let's run our first report


Enter the case id number and press ENTER

Let's navigate to the location where the files are saved

#cd /var/tmp/

You can extract the archived files to check the contents.