<?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: Edit a lookup file through the REST API in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Edit-a-lookup-file-through-the-REST-API/m-p/570445#M198822</link>
    <description>&lt;P&gt;As we wrote - your process has to rewrite contents of the lookup completely.&lt;/P&gt;&lt;P&gt;As a matter of fact, I have a similar situation - my users supply data in .csv file put on a network share. I read this file as a delimited source file and push the events into a small auxiliary index. Then I do a scheduled report which reads the latest occurences of the events and ends with | outputlookup in order to write the results to a lookup. This way whenever my users put a new file into a well-known location, they get an updated lookup within few minutes.&lt;/P&gt;&lt;P&gt;EDIT: As a word of explanation - I could have done that perfectly well using external scripts and calling appropriate REST endpoint to refresh contents of the lookup file but in this case the point was that I wanted to do it entirely with built-in splunk functionality - without any external tools.&lt;/P&gt;</description>
    <pubDate>Tue, 12 Oct 2021 05:10:22 GMT</pubDate>
    <dc:creator>PickleRick</dc:creator>
    <dc:date>2021-10-12T05:10:22Z</dc:date>
    <item>
      <title>Edit a lookup file through the REST API</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Edit-a-lookup-file-through-the-REST-API/m-p/570012#M198681</link>
      <description>&lt;P&gt;Hello !!&lt;/P&gt;&lt;P&gt;I am new to using splunk and would like to know if it is possible to edit a lookup file via Splunk REST API or lookup editor API ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank y'all&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 08:49:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Edit-a-lookup-file-through-the-REST-API/m-p/570012#M198681</guid>
      <dc:creator>rolyrolex</dc:creator>
      <dc:date>2021-10-07T08:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: Edit a lookup file through the REST API</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Edit-a-lookup-file-through-the-REST-API/m-p/570130#M198713</link>
      <description>&lt;P&gt;There is no API for updating parts of a lookup file.&amp;nbsp; You must replace the whole thing.&amp;nbsp; See the REST Reference Manual at&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.2/RESTREF/RESTknowledge#data.2Flookup-table-files.2F.7Bname.7D" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.2/RESTREF/RESTknowledge#data.2Flookup-table-files.2F.7Bname.7D&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 19:26:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Edit-a-lookup-file-through-the-REST-API/m-p/570130#M198713</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-10-07T19:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: Edit a lookup file through the REST API</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Edit-a-lookup-file-through-the-REST-API/m-p/570141#M198716</link>
      <description>&lt;P&gt;In general, it's not possible to update parts of a file-based lookup. You can overwrite whole lookup file (either by REST API or outputlookup command). You can of course edit the file directly on the server(s) but it will also effectively work as complete replacement of old contents when splunk reloads the lookup file.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 21:00:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Edit-a-lookup-file-through-the-REST-API/m-p/570141#M198716</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2021-10-07T21:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Edit a lookup file through the REST API</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Edit-a-lookup-file-through-the-REST-API/m-p/570425#M198818</link>
      <description>&lt;P&gt;Thank you all for your responses.&lt;/P&gt;&lt;P&gt;I think I should fully explain what I would like to do to find out if this is possible.&lt;/P&gt;&lt;P&gt;we have lookup file configurations in a Google Sheet, currently we are updating these configurations manually in the lookup files in splunk.&lt;/P&gt;&lt;P&gt;Now we want to automate the creation or modification directly from the google sheet.&lt;/P&gt;&lt;P&gt;So I would like to know if this is possible with splunk tools.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 07:56:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Edit-a-lookup-file-through-the-REST-API/m-p/570425#M198818</guid>
      <dc:creator>rolyrolex</dc:creator>
      <dc:date>2021-10-11T07:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: Edit a lookup file through the REST API</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Edit-a-lookup-file-through-the-REST-API/m-p/570445#M198822</link>
      <description>&lt;P&gt;As we wrote - your process has to rewrite contents of the lookup completely.&lt;/P&gt;&lt;P&gt;As a matter of fact, I have a similar situation - my users supply data in .csv file put on a network share. I read this file as a delimited source file and push the events into a small auxiliary index. Then I do a scheduled report which reads the latest occurences of the events and ends with | outputlookup in order to write the results to a lookup. This way whenever my users put a new file into a well-known location, they get an updated lookup within few minutes.&lt;/P&gt;&lt;P&gt;EDIT: As a word of explanation - I could have done that perfectly well using external scripts and calling appropriate REST endpoint to refresh contents of the lookup file but in this case the point was that I wanted to do it entirely with built-in splunk functionality - without any external tools.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 05:10:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Edit-a-lookup-file-through-the-REST-API/m-p/570445#M198822</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2021-10-12T05:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: Edit a lookup file through the REST API</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Edit-a-lookup-file-through-the-REST-API/m-p/570794#M198913</link>
      <description>&lt;P&gt;Thank you !!&lt;/P&gt;&lt;P&gt;Can i use this with splunk cloud&amp;nbsp; ? or how do i put a file in the&amp;nbsp;&lt;SPAN&gt;upload staging area ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Oct 2021 15:11:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Edit-a-lookup-file-through-the-REST-API/m-p/570794#M198913</guid>
      <dc:creator>rolyrolex</dc:creator>
      <dc:date>2021-10-13T15:11:41Z</dc:date>
    </item>
  </channel>
</rss>

