Alerting

How do I get the hostname from a triggered alert?

az300
New Member

Splunk finds the desired pattern in the logs eg. "error xyz" and triggers a script to forward this condition into our enterprise monitoring system. All good stuff.

How can I determine the hostname of the offending server so I can include this little detail into our enterprise system via the triggered script?

Sorry if this is a total noob question, but I can't find a clear answer.

We are running Splunk 6.2.3 Enterprise.

0 Karma

frobinson_splun
Splunk Employee
Splunk Employee

Hi @az300,
I'm not sure how your script sends information into your monitoring system, but you could try checking out tokens that work with an alert's saved search to access fields, such as "hostname", in the search results.

Here is some documentation that might help:
http://docs.splunk.com/Documentation/Splunk/6.2.0/Alert/Setupalertactions#Tokens_available_for_email...

Let me know if you have other questions!
All the best,
@frobinson_splunk

0 Karma
Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

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