Lab 2.1 ‐ Standardizing on Timezone - AinsleyPlayer/SEC-350 GitHub Wiki
For this lab we will be standardizing our timezones across all of our systems for consistency and for things to run and communicate smoothly.
RW01
As shown in the image below, the time zone is set for EST there is no indication of year nor timezone, and if all boxes aren't the same, there will be issues.
To fix this we will run the command sudo nano /etc/rsyslog.conf
and comment out this line using a #. After commenting it out, save it, then restart syslog with the command sudo systemctl restart rsyslog
.
Deliverable 1
Now make a new log with the command logger -t test whattimeisit
and then run the command sudo cat /var/log/syslog | grep whattimeisit
We will now do the exact same thing in our web01 and log01 boxes!
Web01
Deliverable 2
Log01
Deliverable 3
Deliverable 4
Further information on checking and configuring log files : https://sematext.com/blog/ubuntu-logs/