Viewing and Managing Log Files Flashcards

1
Q

Log File Categories

A

System
Service
Event
Application

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Debian based host system log location and what does it do?

A

/var/log/syslog
stores all global system activity and startup messages
options are controlled by /etc/syslog.config or /etc/rsyslog.conf
Aditional configuration files can be added to /etc/rsyslog.d/

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the main system log on RHEL based hosts

A

/var/log/messages
Options controlled by /etc/syslog.config or /etc/rsyslog.conf

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

A logging system introduced by systemd and implemented by the journal daemon which stores logs in a binary format that can be viewed by using journalctl utility

A

systemd journal

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Journalctl option -u or unit

A

view messages for a particular systemd unit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

journalctl option -f

A

follow the journal for the latest messages

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

journalctl option -e

A

jump to the end of the journal

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

journalctl option -x

A

add explanatory texts from the message catalog

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

journalctl option -s, -u

A

show entries from a specified date (since and until)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Settings for the systemd journal can be updated by modifying?

A

/etc/systemd/journald.conf or adding configuration files to /etc/systemd/journald.conf.d/

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

A utility that can be installed and is installed by default on many distros in order to manage log files. It makes sure log files do not become to big and dictates how they will be stored on the host

A

logrotate

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Main config file for log rotate

A

/etc/logrorate.conf and add confs can be set at /etc/logrotate.d

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

By default log rotate creates a crontab file in (which will be executed daily?

A

/etc/cron.daily

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

If you are trying to troubleshoot an issue where is the first place you should look?

A

The system log files in /var/log/syslog debian based hsots and /var/log/messages red hat based hosts

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the format for entries in /var/log/syslog and messages?

A

timestamp, host name applicaiton and message

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is a new way to store logs?

A

through systemd journal which is stroed in binary and can be viewed by the journalctl utility

17
Q
A