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!

Building Reliable Asset and Identity Frameworks in Splunk ES

 Accurate asset and identity resolution is the backbone of security operations. Without it, alerts are ...

Cloud Monitoring Console - Unlocking Greater Visibility in SVC Usage Reporting

For Splunk Cloud customers, understanding and optimizing Splunk Virtual Compute (SVC) usage and resource ...

Automatic Discovery Part 3: Practical Use Cases

If you’ve enabled Automatic Discovery in your install of the Splunk Distribution of the OpenTelemetry ...