Refresh

This website github-wiki-see.page/m/Cyber-JL/SEC-350-01/wiki/Lab-2.1-Standardizing-on-Time is currently offline. Cloudflare's Always Online™ shows a snapshot of this web page from the Internet Archive's Wayback Machine. To check for the live version, click Refresh.

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:

  1. 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
  1. To change the formate of the time and date of the syslog edit and comment out the following:

    vi /etc/rsyslog.conf
    

2023-01-23 14_07_11-VMware Horizon

  1. Then restart rsyslog

      sudo systemctl restart rsyslog
    
  2. Test to see if it worked

2023-01-23 14_10_57-Lindale_Lab 2 1 Standardizing on Time - Google Docs

WEB01 (CentOS 7)

To change the time and date we do the following:

  1. 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
  1. To change the formate of the time and date of the syslog edit and comment out the following:

    vi /etc/rsyslog.conf
    

2023-01-23 14_22_10-VMware Horizon

  1. Then restart rsyslog

      sudo systemctl restart rsyslog
    
  2. Test to see if it worked

2023-01-23 14_16_56-Lindale_Lab 2 1 Standardizing on Time - Google Docs

Log01 (CentOS 7)

To change the time and date we do the following:

  1. 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
  1. To change the formate of the time and date of the syslog edit and comment out the following:

    vi /etc/rsyslog.conf
    

2023-01-23 14_14_38-VMware Horizon

  1. Then restart rsyslog

      sudo systemctl restart rsyslog
    
  2. Test to see if it worked

2023-01-23 14_20_12-Lindale_Lab 2 1 Standardizing on Time - Google Docs