Splunk Search

How do I pass in a default value for a single value chart?

angersleek
Path Finder

How do I pass in a default value for a single value chart?
As in I am not looking to search anything for now in the search query.
For example, I just want the chart to display the number 1.10.

Is this possible?

Tried following in the search query but it doesn't work returning no result.

| eval myVal=1.10 | table myVal
0 Karma
1 Solution

FrankVl
Ultra Champion

Your attempt comes close, but to generate some placeholder result, you need to add the makeresults command in front of it.

So try this:

| makeresults | eval myVal=1.10 | table myVal

View solution in original post

FrankVl
Ultra Champion

Your attempt comes close, but to generate some placeholder result, you need to add the makeresults command in front of it.

So try this:

| makeresults | eval myVal=1.10 | table myVal

angersleek
Path Finder

Just what I needed! Thank you.

0 Karma
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...