
環境:Graylog OVA 檔
版本:2.5
[Change Password]
1. Confirm the location of the graylog.conf file,In the Graylog OVA environment, graylog.conf is located at /opt/graylog/conf/graylog.conf,For other environments, please refer to thisLink。
2. Edit graylog.conf using vi。
sudo vi /opt/graylog/conf/graylog.conf
### Common vi commands ###
a 進入編輯模式
esc 回到指令模式
:w Save
:q Exit
:q! When you forget to open with sudo and don't have permission to save,Force exit。
3. 使用 OpenHashTool 等工具,將密碼以 SHA-256 加密,產生如下演算後之密碼。
f375f401ddc698af533f16f8ac1e91c1
4. 找到「root_password_sha2 =」,將後方的數值改成剛剛產生的字串。

5. 存檔離開後,輸入下方指令,重啟 graylog-ctl 服務。
sudo graylog-ctl restart
Tips.
另外有個 sudo graylog-ctl set-admin-password 指令可以修改 admin 密碼,但在我的環境測試並沒有修改成功。(graylog-ctl 指令用法)
【修改時區】
1. Edit graylog.conf using vi。
sudo vi /opt/graylog/conf/graylog.conf
2. 找到「root_timezone =」將後方時區改成 Asia/Taipei (完整時區表)

3. 存檔離開後,輸入下方指令,重啟 graylog-ctl 服務。
sudo graylog-ctl restart
【參考連結】
- RackPan的學習備忘錄: Graylog Server 安裝及設定
- Default file locations — Graylog 2.5.0 Documentation
- server.conf — Graylog 2.5.0 Documentation
- Joda-Time – Java date and time API – Time Zones
- The graylog-ctl script — Graylog 2.5.0 Documentation








Leave a Reply