Review Syslog Files Flashcards

1
Q

What command is used to restart the rsyslog service?

A

systemctl restart rsyslog

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

What command is used to generate a log message with a type and priority?

A

logger -p <user>.<priority></priority></user>

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

What command is used to view the last ten log messages of var log files?

A

tail /var/log/messages-<priority></priority>

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