# 타임존 설정

{% hint style="info" %}
모든 로깅 시스템에서 가장 중요한 것은 **시간 동기화**입니다. \
AWS의 기본 타임존은 "GMT"로 설정되어 있으므로, 이를 "Asia/Seoul"로 변경하는 방법을 안내드립니다.
{% endhint %}

### 1. Localtime을 "Asia/Seoul"로 변경 <a href="#id-1" id="id-1"></a>

```bash
ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime
```

### 2. rsyslog 재시작 <a href="#id-2" id="id-2"></a>

* 시간 변경 후, `rsyslog` 서비스를 재시작해야 변경 사항이 적용됩니다.

```bash
service rsyslog restart
```

**2.1**  현재 Localtime 확인

```bash
date
```

<figure><img src="https://qubitsec.github.io/docs/images/Public_Cloud/timezone/01.png" alt=""><figcaption></figcaption></figure>

* 현재 Localtime이 `UTC`로 설정되어 있습니다.

**2.2** Localtime을 "Asia/Seoul"로 변경

```bash
ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime
```

<figure><img src="https://qubitsec.github.io/docs/images/Public_Cloud/timezone/02.png" alt=""><figcaption></figcaption></figure>

* Localtime이 `Mon Jul 6 11:16:42 KST 2020`로 변경되었습니다.

**2.3** rsyslog 재시작

```bash
service rsyslog restart
```

**2.4** 변경된 Localtime 확인

```
변경 전: Mon Jul 6 02:16:00 UTC 2020
변경 후: Mon Jul 6 11:16:42 KST 2020
```

### 3. PLURA 웹 UI에서 시간 설정 <a href="#id-3" id="id-3"></a>

* PLURA 웹 UI에서도 시간을 설정할 수 있습니다.
  * **경로:** 관리 > [시스템](https://docs.plura.io/ko/function/common/management/system) > 시간
  * **Windows 서버**의 경우 기본 시간이 UTC로 설정되므로, 사용 중인 국가의 Localtime으로 설정해야 합니다.
