<?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 do I get the lookup table to update automatically whenever the CSV file is updated in the specific local file ? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/how-do-I-get-the-lookup-table-to-update-automatically-whenever/m-p/487650#M83485</link>
    <description>&lt;P&gt;Hi chaitanya1996, &lt;/P&gt;

&lt;P&gt;Lookup files should be created, stored and use on search heads. Just read the details of the app and you will get all details needed to learn how you can update the lookup file in a search head cluster.&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
    <pubDate>Tue, 28 Apr 2020 20:10:30 GMT</pubDate>
    <dc:creator>MuS</dc:creator>
    <dc:date>2020-04-28T20:10:30Z</dc:date>
    <item>
      <title>how do I get the lookup table to update automatically whenever the CSV file is updated in the specific local file ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-do-I-get-the-lookup-table-to-update-automatically-whenever/m-p/487645#M83480</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;
I have a csv file generated by script daily at &lt;EM&gt;$SplunkHome\etc\apps\bin\'fuel_stations.csv'&lt;/EM&gt;. I add manually that CSV file as Lookup table files using &lt;EM&gt;"settings&amp;gt; lookups&amp;gt; Lookup table files&amp;gt; add new"&lt;/EM&gt; to use it for my splunk search  &lt;EM&gt;|inputlookup fuel_station.csv&lt;/EM&gt;.&lt;/P&gt;

&lt;P&gt;Now I want to automate to update lookup file whenever this csv file in above path is updated.&lt;BR /&gt;
How do I get the lookup table to update automatically whenever the CSV file is updated in the specific local file ? &lt;BR /&gt;
splunk v.6.6.3&lt;BR /&gt;
Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2020 13:52:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-do-I-get-the-lookup-table-to-update-automatically-whenever/m-p/487645#M83480</guid>
      <dc:creator>chaitanya1996</dc:creator>
      <dc:date>2020-04-27T13:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: how do I get the lookup table to update automatically whenever the CSV file is updated in the specific local file ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-do-I-get-the-lookup-table-to-update-automatically-whenever/m-p/487646#M83481</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;i would suggest monitoring this file $SplunkHome\etc\apps\bin\'fuel_stations.csv' using the splunk file monitoring. So, that the data in splunk is indexed everytime you update the file.&lt;/P&gt;

&lt;P&gt;Then you can schedule a search to this data to lookup csv file using outputlookup command.&lt;BR /&gt;
index = &lt;BR /&gt;
| table field1, field2 &lt;BR /&gt;
|outputlookup fuel_station.csv append=(true|false)&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2020 20:13:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-do-I-get-the-lookup-table-to-update-automatically-whenever/m-p/487646#M83481</guid>
      <dc:creator>prachisaxena</dc:creator>
      <dc:date>2020-04-27T20:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: how do I get the lookup table to update automatically whenever the CSV file is updated in the specific local file ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-do-I-get-the-lookup-table-to-update-automatically-whenever/m-p/487647#M83482</link>
      <description>&lt;P&gt;Hi chaitanya1996,&lt;/P&gt;

&lt;P&gt;Easiest solution for this is to change the script to output the csv into the correct directory &lt;CODE&gt;$SPLUNK_HOME\etc\apps\&amp;lt;yourApp&amp;gt;\lookups\fuel_stations.csv&lt;/CODE&gt; this will use the updated lookup file immediately when using &lt;CODE&gt;| inputlookup&lt;/CODE&gt; afterwards.&lt;/P&gt;

&lt;P&gt;This will only work if the script is not running in a Search Head Cluster; if you plan to run it in a search head cluster you can use this app &lt;A href="https://splunkbase.splunk.com/app/4649/#/overview"&gt;https://splunkbase.splunk.com/app/4649/#/overview&lt;/A&gt; &lt;/P&gt;

&lt;P&gt;Hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2020 20:27:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-do-I-get-the-lookup-table-to-update-automatically-whenever/m-p/487647#M83482</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2020-04-27T20:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: how do I get the lookup table to update automatically whenever the CSV file is updated in the specific local file ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-do-I-get-the-lookup-table-to-update-automatically-whenever/m-p/487648#M83483</link>
      <description>&lt;P&gt;Hi @MuS ,&lt;/P&gt;

&lt;P&gt;I have fuel_stations.csv file at indexer in Search Head Cluster. I want to update the lookup in search head and do |inputlookup  across all search heads.&lt;/P&gt;

&lt;P&gt;can you suggest to get this in any possible way.&lt;BR /&gt;
And can you please elaborate it whether we can use the app you suggested to get this done.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Chaitanya &lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 13:59:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-do-I-get-the-lookup-table-to-update-automatically-whenever/m-p/487648#M83483</guid>
      <dc:creator>chaitanya1996</dc:creator>
      <dc:date>2020-04-28T13:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: how do I get the lookup table to update automatically whenever the CSV file is updated in the specific local file ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-do-I-get-the-lookup-table-to-update-automatically-whenever/m-p/487649#M83484</link>
      <description>&lt;P&gt;Hi @prachisaxena,&lt;/P&gt;

&lt;P&gt;When we monitor the csv file, if we change the value of field2 in row 2 from 5 to 4.. it gets into splunk.&lt;BR /&gt;
But if we again change the field2 in row 2 from 4 to 5 , it doesn't get into splunk and iam not able to get the latest updated one due to this.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Chaitanya&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 14:07:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-do-I-get-the-lookup-table-to-update-automatically-whenever/m-p/487649#M83484</guid>
      <dc:creator>chaitanya1996</dc:creator>
      <dc:date>2020-04-28T14:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: how do I get the lookup table to update automatically whenever the CSV file is updated in the specific local file ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-do-I-get-the-lookup-table-to-update-automatically-whenever/m-p/487650#M83485</link>
      <description>&lt;P&gt;Hi chaitanya1996, &lt;/P&gt;

&lt;P&gt;Lookup files should be created, stored and use on search heads. Just read the details of the app and you will get all details needed to learn how you can update the lookup file in a search head cluster.&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 20:10:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-do-I-get-the-lookup-table-to-update-automatically-whenever/m-p/487650#M83485</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2020-04-28T20:10:30Z</dc:date>
    </item>
  </channel>
</rss>

