How do you set up Slack alerts with Linux Hostname Environment Variable placeholder in alert_actions.conf?

Path Finder

I'm setting up Slack alerts and would like to deploy uniformly to our heavy forwarders. To do so, I'd have to add a placeholder to their alert_actions.conf

disabled = 0
param.webhook_url =

I was wondering if something like the linux hostname variable can be used within this file like above.

0 Karma


I would use the Splunkbase app Slack Notification Alert In the body of the alert you can use $$
to refer to the hostname.

0 Karma

Splunk Employee
Splunk Employee

Hi @sogeniusio,

Sorry you haven't received any answers to your question. I'm sure help is on the way!

But, in the mean time,If you want to try to get some immediate help for your question, you should join the 5000+ Splunk users in our public Slack Community chat. People ask each other for immediate help on there daily. You can share your question/link to your post there to see if anyone can take a stab at it.

You first have to request access through Fill out the form, and once you receive the approval email from our Community Manager (usually the approval process may take a couple days), you can access and ask for help in the #general channel.

0 Karma
Register for .conf21 Now! Go Vegas or Go Virtual!

How will you .conf21? You decide! Go in-person in Las Vegas, 10/18-10/21, or go online with .conf21 Virtual, 10/19-10/20.