Splunk Enterprise

Splunk message to teams 'chat'

tlmayes
Contributor

Has anybody here ever cracked the nut on how to send Splunk messages triggered by an alert to a Microsoft Teams "chat" (not a Teams channel)

Labels (1)
0 Karma
1 Solution

tscroggins
Influencer

Hi @tlmayes,

What have you tried so far? If you already have a Microsoft 365 identity that represents your Splunk instance, grant the user or application the necessary Graph API permissions (Chat.ReadBasic and ChatMessage.Send for a user or Chat.ReadBasic.All and Teamwork.Migrate.All for an application), add the identity to a chat, and give the chat a unique name, e.g. "Splunk."

The basic process should be:

  1. Authenticate (https://learn.microsoft.com/en-us/graph/auth/auth-concepts).
  2. Find the chat by name by enumerating chats (https://learn.microsoft.com/en-us/graph/api/chat-list).
  3. Send a message to the chat (https://learn.microsoft.com/en-us/graph/api/chat-post-messages).

I don't have an enterprise Microsoft 365 account myself, but I can help you develop an alert action script here if you don't already have something started.

View solution in original post

tlmayes
Contributor

Thanks.... this was the only path we found to work as well.  Appreciate the confirmation

0 Karma

tscroggins
Influencer

Hi @tlmayes,

What have you tried so far? If you already have a Microsoft 365 identity that represents your Splunk instance, grant the user or application the necessary Graph API permissions (Chat.ReadBasic and ChatMessage.Send for a user or Chat.ReadBasic.All and Teamwork.Migrate.All for an application), add the identity to a chat, and give the chat a unique name, e.g. "Splunk."

The basic process should be:

  1. Authenticate (https://learn.microsoft.com/en-us/graph/auth/auth-concepts).
  2. Find the chat by name by enumerating chats (https://learn.microsoft.com/en-us/graph/api/chat-list).
  3. Send a message to the chat (https://learn.microsoft.com/en-us/graph/api/chat-post-messages).

I don't have an enterprise Microsoft 365 account myself, but I can help you develop an alert action script here if you don't already have something started.

Get Updates on the Splunk Community!

Unleash Unified Security and Observability with Splunk Cloud Platform

     Now Available on Microsoft AzureThursday, March 27, 2025  |  11AM PST / 2PM EST | Register NowStep boldly ...

Splunk AppDynamics with Cisco Secure Application

Web applications unfortunately present a target rich environment for security vulnerabilities and attacks. ...

New Splunk Innovations Enhance Performance and Accelerate Troubleshooting

Splunk is excited to announce new releases that empower ITOps and engineering teams to stay ahead in ever ...