Graylog – graylog.conf 設定

環境: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
 

【參考連結】

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.