Getting Data In

how to pass a global variable as source?

reney44
Engager

I add a global variable like below
`
globalvariable

<query>

| makeresults | eval var="D:\ALM-Splunk-Delivery\Reports\Project_Area_1\CRS_Requirements\data.csv"

<preview>

  <set token="source1">$result.var$</set>
</preview>

`

I want to pass $source1$ as variable in report as below

<single>
        <title>count with date</title>
        <search>
          <query> index="newindex" source="$source1$" |stats count</query>
        </search>
 </single>
Tags (1)
0 Karma
Get Updates on the Splunk Community!

Get Operational Insights Quickly with Natural Language on the Splunk Platform

In today’s fast-paced digital world, turning data into actionable insights is essential for success. With ...

What’s New in Splunk Observability Cloud – June 2025

What’s New in Splunk Observability Cloud – June 2025 We are excited to announce the latest enhancements to ...

Almost Too Eventful Assurance: Part 2

Work While You SleepBefore you can rely on any autonomous remediation measures, you need to close the loop ...