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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...