Splunk Dev

A static option for an dynamically generated radiogroup

PPape
Contributor

Hi,

I try to make an radiogroup to filter for Hosts in my Dashboard.

{% radiogroup id="radio_sourcetype" managerid="search_server" labelField="host" valueField="host" value="$host$"|token_safe default="*" %}

This works just fine!

But now I need an Option to show all Hosts in the Charts.

How do I add this static entry like * to the dynamic radiogroup?

Thanks in advance!

0 Karma
1 Solution

martin_mueller
SplunkTrust
SplunkTrust

You could append a static value to your search like this:

your search in manager search_server | append [stats count as host | eval host="*"]

View solution in original post

martin_mueller
SplunkTrust
SplunkTrust

You could append a static value to your search like this:

your search in manager search_server | append [stats count as host | eval host="*"]

PPape
Contributor

Thank you this was what i needed!

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 ...