<?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 to Distribute and update &amp;quot;manually&amp;quot; created lookup file in the SHC? in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-Distribute-and-update-quot-manually-quot-created-lookup/m-p/655166#M17188</link>
    <description>&lt;P&gt;In your script, copy the file to&amp;nbsp;&lt;EM&gt;SH1.yourdomain.com&lt;/EM&gt;:/opt/splunk/var/run/splunk/lookup_tmp/ (C:\Program Files\Splunk\var\run\splunk\lookup_tmp\ on Windwos) on one of the SHs.&amp;nbsp;&lt;BR /&gt;This puts it into the Splunk lookup staging directory.&amp;nbsp;&lt;BR /&gt;Make sure to pick one of the search heads and not a domain alias for your environment. Knowing the exact SH that you copy the file to is important for the next step.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then you can use the REST API to promote it to the production version of the lookup using the below endpoint:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl -k -u admin:pass https://SH1.yourdomain.com:8089/servicesNS/&amp;lt;user&amp;gt;/&amp;lt;app&amp;gt;/data/lookup-table-files/lookup_file_name.csv -d eai:data=/opt/splunk/var/run/splunk/lookup_tmp/new_lookup_file_name.csv&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If the lookup is to be shared in the app, you can set the user to nobody.&lt;BR /&gt;&lt;BR /&gt;This API call checks the staging area for a CSV called new_lookup_file_name.csv and overwrites the lookup_file_name.csv in production.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since its elevated via the Splunk API, Splunk takes care of the replication to other SHs in the cluster.&lt;BR /&gt;&lt;BR /&gt;Documentation on this can be found here:&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/LATEST/RESTREF/RESTknowledge#data.2Flookup-table-files.2F.7Bname.7D" target="_blank" rel="noopener"&gt;Knowledge endpoint descriptions - Splunk Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Aug 2023 12:18:01 GMT</pubDate>
    <dc:creator>andrew_nelson</dc:creator>
    <dc:date>2023-08-22T12:18:01Z</dc:date>
    <item>
      <title>How to Distribute and update "manually" created lookup file in the SHC?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-Distribute-and-update-quot-manually-quot-created-lookup/m-p/654527#M17116</link>
      <description>&lt;P&gt;Hello to everyone.&lt;BR /&gt;I need to distribute a *.csv file that was created by a certain script (not with the help of Splunk).&lt;BR /&gt;The script runs every day and may update the file.&lt;BR /&gt;How can I do it in the SHC?&lt;BR /&gt;I tried to push this file with the help of the Deployer, but the main problem with this approach is that a lookup file is only created if it does not exist on the SHC members. If I push it once, I can't update it.&lt;/P&gt;
&lt;P&gt;I understand that I can develop an external script that will delete an old file on the SHC members and then push a new one with the help of the Deployer.&lt;BR /&gt;But maybe an easier way exists to resolve my case?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2023 23:16:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-Distribute-and-update-quot-manually-quot-created-lookup/m-p/654527#M17116</guid>
      <dc:creator>NoSpaces</dc:creator>
      <dc:date>2023-08-16T23:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to Distribute and update "manually" created lookup file in the SHC?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-Distribute-and-update-quot-manually-quot-created-lookup/m-p/654795#M17154</link>
      <description>&lt;P&gt;Up&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2023 06:52:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-Distribute-and-update-quot-manually-quot-created-lookup/m-p/654795#M17154</guid>
      <dc:creator>NoSpaces</dc:creator>
      <dc:date>2023-08-18T06:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to Distribute and update "manually" created lookup file in the SHC?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-Distribute-and-update-quot-manually-quot-created-lookup/m-p/655155#M17185</link>
      <description>&lt;P&gt;Up&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 10:58:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-Distribute-and-update-quot-manually-quot-created-lookup/m-p/655155#M17185</guid>
      <dc:creator>NoSpaces</dc:creator>
      <dc:date>2023-08-22T10:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to Distribute and update "manually" created lookup file in the SHC?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-Distribute-and-update-quot-manually-quot-created-lookup/m-p/655166#M17188</link>
      <description>&lt;P&gt;In your script, copy the file to&amp;nbsp;&lt;EM&gt;SH1.yourdomain.com&lt;/EM&gt;:/opt/splunk/var/run/splunk/lookup_tmp/ (C:\Program Files\Splunk\var\run\splunk\lookup_tmp\ on Windwos) on one of the SHs.&amp;nbsp;&lt;BR /&gt;This puts it into the Splunk lookup staging directory.&amp;nbsp;&lt;BR /&gt;Make sure to pick one of the search heads and not a domain alias for your environment. Knowing the exact SH that you copy the file to is important for the next step.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then you can use the REST API to promote it to the production version of the lookup using the below endpoint:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl -k -u admin:pass https://SH1.yourdomain.com:8089/servicesNS/&amp;lt;user&amp;gt;/&amp;lt;app&amp;gt;/data/lookup-table-files/lookup_file_name.csv -d eai:data=/opt/splunk/var/run/splunk/lookup_tmp/new_lookup_file_name.csv&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If the lookup is to be shared in the app, you can set the user to nobody.&lt;BR /&gt;&lt;BR /&gt;This API call checks the staging area for a CSV called new_lookup_file_name.csv and overwrites the lookup_file_name.csv in production.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since its elevated via the Splunk API, Splunk takes care of the replication to other SHs in the cluster.&lt;BR /&gt;&lt;BR /&gt;Documentation on this can be found here:&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/LATEST/RESTREF/RESTknowledge#data.2Flookup-table-files.2F.7Bname.7D" target="_blank" rel="noopener"&gt;Knowledge endpoint descriptions - Splunk Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 12:18:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-Distribute-and-update-quot-manually-quot-created-lookup/m-p/655166#M17188</guid>
      <dc:creator>andrew_nelson</dc:creator>
      <dc:date>2023-08-22T12:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to Distribute and update "manually" created lookup file in the SHC?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-Distribute-and-update-quot-manually-quot-created-lookup/m-p/655922#M17228</link>
      <description>&lt;P&gt;Thank you for the workaround&lt;BR /&gt;I will check out this approach&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 08:00:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-Distribute-and-update-quot-manually-quot-created-lookup/m-p/655922#M17228</guid>
      <dc:creator>NoSpaces</dc:creator>
      <dc:date>2023-08-29T08:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to Distribute and update "manually" created lookup file in the SHC?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-Distribute-and-update-quot-manually-quot-created-lookup/m-p/758080#M23824</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/229311"&gt;@andrew_nelson&lt;/a&gt;&amp;nbsp; it looks complicated, is it supported by Splunk using this method?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Feb 2026 14:12:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-Distribute-and-update-quot-manually-quot-created-lookup/m-p/758080#M23824</guid>
      <dc:creator>splunkreal</dc:creator>
      <dc:date>2026-02-06T14:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to Distribute and update "manually" created lookup file in the SHC?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-Distribute-and-update-quot-manually-quot-created-lookup/m-p/758082#M23825</link>
      <description>&lt;P&gt;Hey&amp;nbsp; &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/171872"&gt;@splunkreal&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yeah, its supported. All documented in the REST API documentation.&amp;nbsp;&lt;BR /&gt;&lt;A href="https://help.splunk.com/en/splunk-enterprise/leverage-rest-apis/rest-api-reference/10.2/knowledge-endpoints/knowledge-endpoint-descriptions" target="_self"&gt;Knowledge endpoint descriptions | Splunk Enterprise &lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Check out &lt;STRONG&gt;POST&amp;nbsp;data/lookup-table-files&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The only extra steps I added was for dealing with a search head cluster as the initial post was related to SHC.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Feb 2026 15:02:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-Distribute-and-update-quot-manually-quot-created-lookup/m-p/758082#M23825</guid>
      <dc:creator>andrew_nelson</dc:creator>
      <dc:date>2026-02-06T15:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to Distribute and update "manually" created lookup file in the SHC?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-Distribute-and-update-quot-manually-quot-created-lookup/m-p/758133#M23831</link>
      <description>&lt;P&gt;Alternatively you could use Lookup Editor's API. It's not officially documented but there are examples of scripts using it on the web.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Feb 2026 22:40:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-Distribute-and-update-quot-manually-quot-created-lookup/m-p/758133#M23831</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2026-02-06T22:40:50Z</dc:date>
    </item>
  </channel>
</rss>

