> For the complete documentation index, see [llms.txt](https://docs.plura.io/ja/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.plura.io/ja/iaas/aws/timezone.md).

# タイムゾーン設定

{% hint style="info" %}
**すべてのロギング システムで最も重要なのは、時間の同期です。**
{% endhint %}

:hourglass\_flowing\_sand:AWSでは、Local Timeのデフォルトに「GMT」が設定されます。

### 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 現在 Local time 確認**

```bash
date
```

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

* [x] LocaltimeがMon Jul 602:16:00 UTC 2020に設定されています。

**2.2 現在のLocal timeを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>

* [x] 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ページの時間設定方法 <a href="#id-3" id="id-3"></a>

PLURA > 管理 > システム > 時間

Windowsサーバーの場合、UTC基準で時間が設定され、使用する国のローカルタイムを設定する必要があります。
