Graylog: 設定 Email 通知

本文件是警示通知指南的一部分。請在此處查看完整指南:如何透過 Email、Slack 或 Mattermost 發送 Graylog 警示通知

👋 歡迎來到 Stackhero 文件!

Stackhero 提供一個即用型的 Graylog cloud 解決方案,帶來多項好處,包括:

  • 包含無限和專用的 SMTP 電郵伺服器
  • 只需一鍵即可輕鬆更新
  • 使用 HTTPS 保護的可自訂域名(例如,https://logs.your-company.com)。
  • 專用私有 VM提供的最佳性能和強大安全性

節省時間簡化您的生活:只需 5 分鐘即可嘗試 Stackhero 的 Graylog cloud hosting 解決方案!

每個由 Stackhero 提供的 Graylog 實例都內建 Email 伺服器,讓您可以直接從您的實例無限量發送 Email,且不會產生額外費用。

若要設定 Email 通知,您可以依照以下步驟操作:

  1. 進入您的 Graylog 服務,前往 Alerts > Notifications,然後點擊 Get started! 按鈕,或選擇 Create notification

  2. 輸入通知標題,並在 Notification type 選擇 Email Notification

  3. Sender 欄位輸入 noreply@<yourGraylogDomain>。請將 <yourGraylogDomain> 替換為您實際的 Graylog 網域名稱,通常格式為 <XXXXXX>.stackhero-network.com

    重要提醒: 請務必使用您的 Graylog 網域,以避免發送 Email 時發生錯誤。

  4. Email recipient 欄位填入您希望接收警示通知的 Email 地址。

    Email 設定範例Email 設定範例

  5. 點擊 Execute test notification 按鈕,確認一切運作正常。測試無誤後,點擊 Create 完成設定。

恭喜!您的 Email 通知已經建立並開始運作!

如果您遇到 Error: Notification has email recipients and is triggered, but sending emails failed. Sending the email to the following server failed: postfix:25 這個錯誤,通常是因為 sender 欄位格式不正確。正確格式應為 <something>@<yourGraylogDomain>。其中 "something" 可以自由命名(例如 "noreply"),但 "yourGraylogDomain" 必須是您的 Graylog 服務網域,通常為 <XXXXXX>.stackhero-network.com