System Logging and NTP Flashcards
1
Q
What is the format of a rsyslog rule?
A
■ facility.severity location
■ EX: mail.* /var/log/maillog
2
Q
What journalctl option mimicks ‘tail -f’
A
■ journalctl -f
3
Q
How can journald logs be made persistent?
A
- Create a /var/log directory for journald.service
]# mkdir -p /var/log/journal - Change ownership to root:systemd-journal
]# chown root:systemd-journal /var/log/journal - Set permissions on /var/log/journal
]# chmod 2775 /var/log/journal - Tell journald to reopen its log files
]# killall -USR1 systemd-journald
4
Q
What command shows an overview of the current time-related system settings?
A
■ timedatectl [status]
5
Q
Where can a list of available timezones be found?
A
■ timedatectl list-timezones
6
Q
What command will assist in finding the correct time zone?
A
■ tzselect
7
Q
How can a message with a severity be sent to test rsyslogd configurations?
A
■ logger -p [facility.severity] “message to be logged”
■ EX: logger -p authpriv.alert “Logging test authpriv.alert”