Splunk Search

How to print a static value to a single element panel?

chrisdopuch
Path Finder

Hi there,

I am trying to use a single element panel as a key for understanding the other single element panels which contain some concatenated data. I just want to put the string "Count of Orders | Average Time | 95th Percentile of Time" inside this box. I have tried the following queries as the input:

fieldformat string = "Count of Orders | Average Time | 95th Percentile of Time"

eval string = "Count of Orders | Average Time | 95th Percentile of Time"

with <option name="field">string</option> to set the variable as the input.

I appreciate any help or comments!

0 Karma
1 Solution

martin_mueller
SplunkTrust
SplunkTrust

You can put arbitrary strings into a single value by running this search inside the panel:

| stats count as mytext | eval mytext = "some arbitrary text for the single value panel"

As an entirely different approach, you can put text under a single value by setting the underLabel option, this might help as well.

View solution in original post

martin_mueller
SplunkTrust
SplunkTrust

You can put arbitrary strings into a single value by running this search inside the panel:

| stats count as mytext | eval mytext = "some arbitrary text for the single value panel"

As an entirely different approach, you can put text under a single value by setting the underLabel option, this might help as well.

Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...