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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

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