Dashboards & Visualizations

Search with Pipe and Token Values only

simpkins1958
Contributor

I would like to populate a single value chart with calculation from tokens and nothing from a search. This works but would like to remove the index=nmi_main | head 1 which is not working.

        <search>
          <query>index=nmi_main | head 1 
               | eval totalMinutes=$totalSessionsToken$ * $minutesSavedValueToken$
               | table totalMinutes
          </query>
        </search>
0 Karma
1 Solution

DalJeanis
Legend

Use the | makeresults command as the generating command. That makes a single result event (with options for more) which has current _time and not a whole lot else.

https://docs.splunk.com/Documentation/SplunkCloud/6.6.3/SearchReference/Makeresults

View solution in original post

0 Karma

DalJeanis
Legend

Use the | makeresults command as the generating command. That makes a single result event (with options for more) which has current _time and not a whole lot else.

https://docs.splunk.com/Documentation/SplunkCloud/6.6.3/SearchReference/Makeresults

0 Karma
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, ...