VMware ESXi Syslog転送設定手順 のバックアップ(No.2)
- バックアップ一覧
- 差分 を表示
- 現在との差分 を表示
- ソース を表示
- VMware ESXi Syslog転送設定手順 へ行く。
- 1 (2017-11-08 (水) 00:22:14)
- 2 (2017-11-08 (水) 00:31:54)
目次
ESXi6.x †
ESXi6.x向けの設定手順。
GUI又はコマンドラインからの制御となります。操作性の観点からはコマンドラインからの設定が容易ですので、SSH接続を行った上で下記の操作を行います。
環境情報 †
以下の環境にて操作を行うことを前提とします。
VMware ESXi | 6.0 |
VMware ESXi | 6.5 |
VMware ESXi | 6.5u1 |
設定手順 †
1. ESXiへSSHで接続
2. Syslogの設定状態を確認
esxcli system syslog config get
- Remote Hostの設定はされていない状態
Default Network Retry Timeout: 180 Dropped Log File Rotation Size: 100 Dropped Log File Rotations: 10 Enforce SSLCertificates: true Local Log Output: /scratch/log Local Log Output Is Configured: false Local Log Output Is Persistent: true Local Logging Default Rotation Size: 1024 Local Logging Default Rotations: 8 Log To Unique Subdirectory: false Message Queue Drop Mark: 90 Remote Host: <none>
3. Syslog転送先のホストを指定
esxcli system syslog config set --loghost=udp://【IP Address】:514
4. Syslogの設定状態を確認
esxcli system syslog config get
- Remote Hostに設定が行われる
Default Network Retry Timeout: 180 Dropped Log File Rotation Size: 100 Dropped Log File Rotations: 10 Enforce SSLCertificates: true Local Log Output: /scratch/log Local Log Output Is Configured: false Local Log Output Is Persistent: true Local Logging Default Rotation Size: 1024 Local Logging Default Rotations: 8 Log To Unique Subdirectory: false Message Queue Drop Mark: 90 Remote Host: udp://【IP Address】:514
5. Firewallの設定を確認
esxcli network firewall ruleset list | grep syslog
- Firewallが閉じている状態
syslog false
6. Firewallを開放
esxcli network firewall ruleset set --ruleset-id=syslog --enabled=true
7. Firewallの再読み込み
esxcli network firewall refresh
8. Firewallの設定を確認
esxcli network firewall ruleset list | grep syslog
- Firewallが閉じている状態
syslog false
9. Syslogサービスを再読み込み
esxcli system syslog reload
以上の手順にて、syslogがremote hostに指定したサーバへ転送される。