> For the complete documentation index, see [llms.txt](https://paul-gleason.gitbook.io/sec-350-enterprise-and-network-security-controls-1/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://paul-gleason.gitbook.io/sec-350-enterprise-and-network-security-controls-1/labs/lab-2.1-standardizing-on-timezone.md).

# Lab 2.1: Standardizing on Timezone

### Summary:

During this lab we standardized the log timing between Rw01, Web01, and Log01

### Steps:

#### Debian Based:

Edit the rsyslog.conf file `sudo nano /etc/rsyslog.conf`

* Comment out the line that is underlined below.

<figure><img src="https://lh3.googleusercontent.com/4Bb8O2N40BFokd100kntSGzZG2sTTiWi4-3Yzgr-LqyrV0YzqXaAxegFM1bdu8ZTFtKp2VmTWyi-r0guM2PBje6XKoz8rd-UBeKL0Oe9q-ytHJ4NTVE2nJyc5NqcSiVWO3emDtKGanNV7cHMFk76KabzjGeAS7hmDtYhGEpjTk5D2I6EijnH2TsTtoPt3g" alt=""><figcaption></figcaption></figure>

Now restart rsyslog.service

```bash
sudo systemctl restart rsyslog.service 
```

Now do a logger test

```bash
logger -t test whattimeisit2
sudo cat /var/log/syslog | grep whattimeisit
```

<figure><img src="https://lh6.googleusercontent.com/UUbygrV3L2dPeVM4FsOi4u6IWHMeOiupd7g43z6B5oJGnaNLLJxss5a7NUvwm_BDyr5En45ZVnqhEmkthUpB8wNkb8RbTH646WIB563Gnw-fv5qKDAfZNHfdepFQWjNQpzPXvba8nIdkwsmQfbWO6V1myAJfeDNEvzqKEGxS6Oz8gffha04xQzS7UueXkQ" alt=""><figcaption><p>Output</p></figcaption></figure>

#### Redhat Based:

Edit the rsyslog.conf file `sudo nano /etc/rsyslog.conf`

* Comment out the line that is underlined below.

<figure><img src="https://lh6.googleusercontent.com/SNKN7pGH1m0UzZxJLeavzsybUTuz2vs9QLr2gEtswuhwCnsv4LqB7MDThwrCk1wcEJBpcRVXT4trXz-EXAlefBTDblbznoQEMZorQ7BGR6oJlWNSWtFG8uPTDhHML19307wspdVpha-Sg7qLGMdcITtuX3AqQIIMakqDps_-uiOGc_FhRzl80j1v42DReA" alt=""><figcaption></figcaption></figure>

Now restart rsyslog.service

```
sudo systemctl restart rsyslog.service 
```

Now do a logger test

```
logger -t test time2onweb01
sudo cat /var/log/messages | grep time2onweb01
```

<figure><img src="https://lh3.googleusercontent.com/nA6AUH7WnrP3ieCUi2rKU5qPD46-EsDmbfK84r2VqfFOK2QJ_buBQktn7WWGN2ZAx9Gvtj62yjl7xRleNqLmDrkWguxyaxv-5sQGvnJXK7A_JsnPABmHGBLpfr8c6igTy59KZq-Zk8gAy2zur-oSvN6oSA354o5GPNgA1_XT08kYwTKQ3DU7TkICWrb64w" alt=""><figcaption><p>Output</p></figcaption></figure>

### Notes:

Compliance list: <https://www.unifiedcompliance.com/products/search-controls/control/01336/>
