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!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

December 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...