Skip to content

Add ms teams alert notification support#192

Open
Stan0304 wants to merge 2 commits into
splunk:masterfrom
Stan0304:ms-teams-notif
Open

Add ms teams alert notification support#192
Stan0304 wants to merge 2 commits into
splunk:masterfrom
Stan0304:ms-teams-notif

Conversation

@Stan0304

@Stan0304 Stan0304 commented Jul 5, 2024

Copy link
Copy Markdown

The current Splunk terraform provider does not allow to create Splunk Alerts using "MS Teams" notification. This merge request adds the required parameters to support the creation of "MS Teams" notification

resource "splunk_saved_searches" "saved_search" {
    name = "Test New Alert"
    search = "index=main"
    actions = "ms_teams_publish_to_channel"
    action_ms_teams_publish_to_channel_param_alert_ms_teams_url = "https://accor.webhook.office.com/webhookb2/xxx-xxxx-xxxx/IncomingWebhook/xxxx"
    action_ms_teams_publish_to_channel_param_alert_ms_teams_activity_title = "Splunk Alert"
    action_ms_teams_publish_to_channel_param_alert_ms_teams_fields_list = "_raw"
    action_ms_teams_publish_to_channel_param_alert_ms_teams_fields_order = "order_by_list"
    dispatch_earliest_time = "-15m"
    dispatch_latest_time = "-0m"
    cron_schedule = "*/5 * * * *"
    acl {
      owner = "admin"
      sharing = "app"
      app = "launcher"
    }
}

The code above leads to an Alerts with a "MS Teams" notification enabled

image

@Stan0304

Copy link
Copy Markdown
Author

This PR should be ignored since MS retired the Office 365 connectors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant