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

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

A

systemd journal

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

An option for journalctl that viewd messages for a particular systemd unit

A

-u unit

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

An option for journalctl that follows the journal for the latest message

A

-f

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

An option for journalctl that jumps to the end of the hournal

A

-e

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

An option for journalctl that adds explanation texts from the message catalog

A

-x

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

An option for journalctl that shows entries from a specified date since and until

A

-S -U

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

Settings for the systemd journal can be updated by modifying what?

A

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

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

A utility that can be installed and is installed by default on many distributions in order to manage log files? It helps ensure that log files do not become too large 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
10
Q

The main config file for log rotate is

A

/etc/logrotate.conf and additional configurations may be added to /etc/logrotate.d

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

By default logrotate creates a crontab file in /etc/cron.daily which will be executed daily

A

true

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