Lab 2.1: Standardizing on Timezone - squatchulator/Tech-Journal GitHub Wiki
Lab 2.1 - Standardizing on Timezone
Adding timezone data/timestamp to logs
- To check timezone:
timedatectl - To change timezone:
sudo timedatectl set-timezone America/New_York sudo nano /etc/rsyslog.conf- Comment out
$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormatline sudo systemctl restart rsyslog- To test:
logger -t test whattimeisitsudo cat /var/log/messages | grep whattimeisit