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!

Splunk Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...

Enterprise Security (ES) Essentials 8.3 is Now GA — Smarter Detections, Faster ...

As of today, Enterprise Security (ES) Essentials 8.3 is now generally available, helping SOC teams simplify ...