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!

Earn a $35 Gift Card for Answering our Splunk Admins & App Developer Survey

Survey for Splunk Admins and App Developers is open now! | Earn a $35 gift card!      Hello there,  Splunk ...

Continuing Innovation & New Integrations Unlock Full Stack Observability For Your ...

You’ve probably heard the latest about AppDynamics joining the Splunk Observability portfolio, deepening our ...

Monitoring Amazon Elastic Kubernetes Service (EKS)

As we’ve seen, integrating Kubernetes environments with Splunk Observability Cloud is a quick and easy way to ...