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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...