Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ms teams alert notification support #192

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Stan0304
Copy link

@Stan0304 Stan0304 commented Jul 5, 2024

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
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