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!

Unlock New Opportunities with Splunk Education: Explore Our Latest Courses!

At Splunk Education, we’re dedicated to providing top-tier learning experiences that cater to every skill ...

Technical Workshop Series: Splunk Data Management and SPL2 | Register here!

Hey, Splunk Community! Ready to take your data management skills to the next level? Join us for a 3-part ...

Spotting Financial Fraud in the Haystack: A Guide to Behavioral Analytics with Splunk

In today's digital financial ecosystem, security teams face an unprecedented challenge. The sheer volume of ...