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!

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...