• 製品
  • 使用を開始する
  • 関連ドキュメント
  • リソース

Opsgenie を Alert Logic と統合する

Opsgenie が Alert Logic のユーザーに提供するもの

OpsgenieAlert Logic インテグレーションを使用して、Alert Logic アラートを Opsgenie に転送します。Opsgenie は、オンコール スケジュールに基づいて通知する適切な担当者を決定します。メール、テキスト メッセージ (SMS)、電話、iOS、Android のプッシュ通知によって通知して、アラートが確認されるかクローズされるまでアラートをエスカレートします。

統合の機能性

アラートがアラート ロジックで作成されると、Opsgenie でも作成されます。

Opsgenie で Alert Logic インテグレーションを追加する

Opsgenie の Free プランまたは Essentials プランを使用している、または Jira Service Management の Standard プランで Opsgenie を使用している場合は、チーム ダッシュボードからのみこの統合を追加できます。このプランでは、[設定] の [統合] ページが利用できません。

  1. [チーム] に移動して自分のチームを選択します。

  2. 左側のナビゲーションで [統合] を選択し、[統合を追加] を選択します。

統合をチーム ダッシュボードから追加すると、そのチーム統合の所有者になります。Opsgenie では、この統合を通じて受信したアラートはそのチームのみに割り当てられます。このセクションの残りの手順に従って、統合を設定してください。

  1. [設定] > [統合] の順に移動します。Alert Logic を検索して [追加] を選択します。 

  2. [応答者] フィールドによって Alert Logic アラートの通知先を指定します。入力し始めると、オートコンプリートの候補が表示されます。

  3. Webhook の URL をコピーします。

  4. [Save Integration (統合の保存)] を選択します。

Alert Logic の設定

  1. Alert Logic[管理] > [通知] > [Webhook] の順に移動します。

  2. [+Add New (新規追加)] を選択して [名前/タイトル] を追加します。

  3. 統合 API の URL を [URL] に貼り付けます。

  4. 保存をクリックします。

アラート ロジックの設定手順 1

5. [管理] > [通知] > [ポリシー] の順に移動します。

6. 編集するか、新しいポリシーを作成します。

7. [アラートの受信者] フィールドに、以前に作成した Webhook を追加します。

8. [保存] をクリックします。

アラート ロジックの設定ステップ 2

Alert Logic から送信されるペイロードの例

アラートのペイロードを作成します。

JSON

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 { "aggregated_alerts_count": 0, "additional_content": [], "alert_definition_type_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX", "customer_id": 111111, "data": { "message": "Alert Date : 2016-01-15 21:53:09 GMT\nCustomer Name : Your-customer-name\n\nAlert Type : log\nAlert Name : Log Correlation Alert Test - Your-customer-name\nMessage Type : Unix DHCP IP Assigned\n\nLogEvent link:\nhttps://invision.alertlogic.net/log_message.php?id= XXXXXXXXXXXXX", "alert_rule_id": 1111, "source": "correlation_alert_rules" }, "description": "Your-customer-name LogEvent: Log Correlation Alert - Your-customer-name", "id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX", "product": { "name": "Log Manager" }, "severity": "warning", "state": "created", "tags": ["example_tag", "example_tag2"], "timestamp": 1452894789, "type": "correlation", "deleted": false, "notifications": [ { "id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX", "timestamp": 1452894789, "alert_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX", "status": "pending", "updated": 1452894789, "policy_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX", "target_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX", "target_cid": 111111, "target_label": "testing", "target_channel": "webhook", "target_target": "http://your-web-hook-url/", "target_contact_id": null } ] }

このペイロードは Opsgenie によって次のように解析されます。

JSON

1 2 3 4 5 6 7 8 9 10 11 { "aggregatedAlertCount" : 0 "description" : "Alert Date : 2016-01-15 21:53:09 GMT\nCustomer Name : Your-customer-name\n\nAlert Type : log\nAlert Name : Log Correlation Alert Test - Your-customer-name\nMessage Type : Unix DHCP IP Assigned\n\nLogEvent link:\nhttps://invision.alertlogic.net/log_message.php?id= XXXXXXXXXXXXX" "message" : "Your-customer-name LogEvent: Log Correlation Alert - Your-customer-name" "productName" : "Log Manager" "severity" : "warning" "source" : "correlation_alert_rules" "state" : "created" "type" : "correlation" "tags" : "example_tag", "example_tag2" }

その他のヘルプ