<?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 Re: How use a not local csv file as lookup ? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-use-a-not-local-csv-file-as-lookup/m-p/139366#M38295</link>
    <description>&lt;P&gt;Hi. Check this related answer:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://answers.splunk.com/answers/124999/get-data-lookup-from-other-remote-peer.html"&gt;http://answers.splunk.com/answers/124999/get-data-lookup-from-other-remote-peer.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;My opinion: i prefer do a crontab to copy the remote file to local every X minutes.&lt;/P&gt;</description>
    <pubDate>Wed, 03 Dec 2014 15:15:31 GMT</pubDate>
    <dc:creator>changux</dc:creator>
    <dc:date>2014-12-03T15:15:31Z</dc:date>
    <item>
      <title>How use a not local csv file as lookup ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-use-a-not-local-csv-file-as-lookup/m-p/139365#M38294</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I use a csv file as a lookup in a search command like this :&lt;/P&gt;

&lt;P&gt;sourcetype="&lt;EM&gt;airmantool&lt;/EM&gt;"   | rex ".&lt;EM&gt;\s(?[A-Z]+)\s+[(?\w+)]|(?.&lt;/EM&gt;)"  | sort _time | lookup AirmanTool_Lookup.csv AirmanTool_message AS AirmanTool_message OUTPUT Commentary AS AirmanTool_Explanation Procedure AS AirmanTool_Procedure&lt;/P&gt;

&lt;P&gt;The csv file is currently on the local server (in the lookup field) but I want to use a csv on a distant server not on local. The csv is frequently updated.&lt;/P&gt;

&lt;P&gt;How can i do ?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:17:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-use-a-not-local-csv-file-as-lookup/m-p/139365#M38294</guid>
      <dc:creator>pbourit</dc:creator>
      <dc:date>2020-09-28T18:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: How use a not local csv file as lookup ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-use-a-not-local-csv-file-as-lookup/m-p/139366#M38295</link>
      <description>&lt;P&gt;Hi. Check this related answer:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://answers.splunk.com/answers/124999/get-data-lookup-from-other-remote-peer.html"&gt;http://answers.splunk.com/answers/124999/get-data-lookup-from-other-remote-peer.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;My opinion: i prefer do a crontab to copy the remote file to local every X minutes.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Dec 2014 15:15:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-use-a-not-local-csv-file-as-lookup/m-p/139366#M38295</guid>
      <dc:creator>changux</dc:creator>
      <dc:date>2014-12-03T15:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: How use a not local csv file as lookup ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-use-a-not-local-csv-file-as-lookup/m-p/139367#M38296</link>
      <description>&lt;P&gt;Agree with @changux, if you can find a way to periodically move the csv to the local server in an  automated fashion, that would make life easier.&lt;/P&gt;

&lt;P&gt;I had a very similar issue where I had a powershell script, which ran daily, creating a csv file on a windows server which was also configured as a heavy forwarder.  Splunk monitored the output folder and read in each new file to send to one of the index servers.  The search head then performed a scheduled search and created a new local lookup file using outputcsv.  &lt;/P&gt;

&lt;P&gt;This turned out to be inconsistent.  Far simpler to have the powershell script save the output directly to the search head lookup folder (multiple ways to do this).&lt;/P&gt;</description>
      <pubDate>Wed, 03 Dec 2014 16:08:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-use-a-not-local-csv-file-as-lookup/m-p/139367#M38296</guid>
      <dc:creator>reswob4</dc:creator>
      <dc:date>2014-12-03T16:08:13Z</dc:date>
    </item>
  </channel>
</rss>

