Lab 2.1 Standardizing on Time - Cyber-JL/SEC-350-01 GitHub Wiki
RW01 (Ubuntu)
To change the time and date we do the following:
- check the current time and data formate by running
this will how the time and date formate of the machine
date
this will show the time and date formate of syslogs
logger -t test whattimeisit
sudo cat /var/log/syslog | grep whattimneisit
-
To change the formate of the time and date of the syslog edit and comment out the following:
vi /etc/rsyslog.conf
-
Then restart rsyslog
sudo systemctl restart rsyslog
-
Test to see if it worked
WEB01 (CentOS 7)
To change the time and date we do the following:
- check the current time and data formate by running
this will show the time and date formate of syslogs
logger -t test timel0nweb02
sudo cat /var/log/messages | grep timel0nweb02
-
To change the formate of the time and date of the syslog edit and comment out the following:
vi /etc/rsyslog.conf
-
Then restart rsyslog
sudo systemctl restart rsyslog
-
Test to see if it worked
Log01 (CentOS 7)
To change the time and date we do the following:
- check the current time and data formate by running
this will show the time and date formate of syslogs
logger -t test time10nlog01
sudo cat /var/log/messages | grep ttime10nlog01
-
To change the formate of the time and date of the syslog edit and comment out the following:
vi /etc/rsyslog.conf
-
Then restart rsyslog
sudo systemctl restart rsyslog
-
Test to see if it worked