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!

Developer Spotlight with William Searle

The Splunk Guy: A Developer’s Path from Web to Cloud William is a Splunk Professional Services Consultant with ...

Major Splunk Upgrade – Prepare your Environment for Splunk 10 Now!

Attention App Developers: Test Your Apps with the Splunk 10.0 Beta and Ensure Compatibility Before the ...

Stay Connected: Your Guide to June Tech Talks, Office Hours, and Webinars!

What are Community Office Hours?Community Office Hours is an interactive 60-minute Zoom series where ...