<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Same report but different lookup file in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Same-report-but-different-lookup-file/m-p/496502#M138351</link>
    <description>&lt;P&gt;Hi all,&lt;BR /&gt;
is there a way to pass to a report the filename of a  csv as variable, to use it as lookup file ?&lt;/P&gt;

&lt;P&gt;Example: &lt;BR /&gt;
| savedesearch my_report file=my_file.csv &lt;/P&gt;

&lt;P&gt;where &lt;BR /&gt;
my_report &lt;BR /&gt;
| some search &lt;BR /&gt;
| lookup $file$  &lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 04:38:44 GMT</pubDate>
    <dc:creator>fabrizioalleva</dc:creator>
    <dc:date>2020-09-30T04:38:44Z</dc:date>
    <item>
      <title>Same report but different lookup file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Same-report-but-different-lookup-file/m-p/496502#M138351</link>
      <description>&lt;P&gt;Hi all,&lt;BR /&gt;
is there a way to pass to a report the filename of a  csv as variable, to use it as lookup file ?&lt;/P&gt;

&lt;P&gt;Example: &lt;BR /&gt;
| savedesearch my_report file=my_file.csv &lt;/P&gt;

&lt;P&gt;where &lt;BR /&gt;
my_report &lt;BR /&gt;
| some search &lt;BR /&gt;
| lookup $file$  &lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:38:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Same-report-but-different-lookup-file/m-p/496502#M138351</guid>
      <dc:creator>fabrizioalleva</dc:creator>
      <dc:date>2020-09-30T04:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: Same report but different lookup file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Same-report-but-different-lookup-file/m-p/496503#M138352</link>
      <description>&lt;P&gt;Yes, your report should use same variable/field name that is passed by  savedsearch command.&lt;/P&gt;

&lt;P&gt;my_report&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| some search
| lookup $file_name$
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Call this report like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| savedesearch my_report file_name = my_file.csv
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 16 Mar 2020 17:39:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Same-report-but-different-lookup-file/m-p/496503#M138352</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2020-03-16T17:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: Same report but different lookup file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Same-report-but-different-lookup-file/m-p/496504#M138353</link>
      <description>&lt;P&gt;Opsssss. I've tried this but I dont wait for the result to come back!!!!!! &lt;BR /&gt;
Now I've tried and I wait and the results came back I'm sorry!!!!!!!!&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2020 18:00:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Same-report-but-different-lookup-file/m-p/496504#M138353</guid>
      <dc:creator>fabrizioalleva</dc:creator>
      <dc:date>2020-03-16T18:00:29Z</dc:date>
    </item>
  </channel>
</rss>

