All Apps and Add-ons

How to send private message on slack from inline Splunk query?

zachsisinst
Explorer

Hi everyone, I've tried two different apps to do this, and I'm stuck. 

Goal: Send a private message to a slack user via an inline command so that I can pipe `| map` to the inline command to populate the recipient/message. 

I have tried two different apps now and neither are doing what I need.
  • https://splunkbase.splunk.com/app/2878/#/details : this one requires an 'incoming webhook' which is statically set to a channel. Overriding it with | sendalert slack param.channel="@myOverrideUserToSendTo" param.message="test"  doesn't seem to work.
  • https://splunkbase.splunk.com/app/3900/ : this one would work, however you cannot trigger it with an inline command, which I need in order to do my use case. If there is a way to do an inline `|sendalert`alert with this, I am unaware how to do this. 
Labels (2)
0 Karma

Roy_9
Motivator

@zachsisinst Following, got stuck with the same issue a while ago, let me know if you found anything

0 Karma

udwivedi
Splunk Employee
Splunk Employee

@zachsisinst Hi, I've a similar problem in which I'm using your first approach of overriding the channel name with slack user id's and it doesn't seem to work. Were you able to resolve this problem? 

0 Karma
Get Updates on the Splunk Community!

Index This | What is broken 80% of the time by February?

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

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...

Splunk MCP & Agentic AI: Machine Data Without Limits

Discover how the Splunk Model Context Protocol (MCP) Server can revolutionize the way your organization uses ...