All Apps and Add-ons

Categorize host_names based on list

mmacdonald70
Explorer

I apologize if this has been answered before. I couldn't find it anywhere.

I am trying to use the Nagios addon and app to create some reports for management. At the moment, I am working on Ping availability. The issue that I have is that we would like to only include a specific group of devices in these reports.

Is there a way to add a field or tag to this data so that:

if hostname = (device1 or device 2 or device 2) set TAG=LOCATION1
if hostname = (device3 or device4) set TAG = LOCATION2
else set TAG = OTHER

0 Karma

jcoates_splunk
Splunk Employee
Splunk Employee

I would add a lookup for this purpose. You could then do

hostname,categorytag
device1,LOCATION1
device2,LOCATION1
device3,LOCATION2
device4,LOCATION2
*,OTHER

That last line needs the WILDCARD option in your transforms.conf definition.

0 Karma
Get Updates on the Splunk Community!

Accelerating Observability as Code with the Splunk AI Assistant

We’ve seen in previous posts what Observability as Code (OaC) is and how it’s now essential for managing ...

Integrating Splunk Search API and Quarto to Create Reproducible Investigation ...

 Splunk is More Than Just the Web Console For Digital Forensics and Incident Response (DFIR) practitioners, ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...