<?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 query a lookup table using the REST API in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-query-a-lookup-table-using-the-REST-API/m-p/533414#M150715</link>
    <description>&lt;P&gt;Thanks&amp;nbsp; lot&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/201110"&gt;@niketn&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;you solution work perfectly,&lt;/P&gt;&lt;P&gt;we really miss you... &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Dec 2020 08:10:35 GMT</pubDate>
    <dc:creator>rhirasin</dc:creator>
    <dc:date>2020-12-17T08:10:35Z</dc:date>
    <item>
      <title>How to query a lookup table using the REST API?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-query-a-lookup-table-using-the-REST-API/m-p/331245#M98572</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;
&lt;P&gt;I have a Splunk scheduled search which is producing a list of URLs that need to be used by another system. The other system has to access the list using http/https protocol.&lt;/P&gt;
&lt;P&gt;Now, what i'm looking for is:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;making the search results (csv file) available through something like &lt;A href="https://splunkserver/list.csv" target="_blank"&gt;https://splunkserver/list.csv&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;appending the search results to a lookup table and querying the lookup table using something like &lt;A href="https://splunkserver:8089/servicesNS/admin/search/data/lookup-table-files/list.csv" target="_blank"&gt;https://splunkserver:8089/servicesNS/admin/search/data/lookup-table-files/list.csv&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Can someone guide me in how to achieve this?&lt;/P&gt;
&lt;P&gt;Thanks in advance!&lt;BR /&gt;Andrei&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2022 13:48:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-query-a-lookup-table-using-the-REST-API/m-p/331245#M98572</guid>
      <dc:creator>raduand</dc:creator>
      <dc:date>2022-03-25T13:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to query a lookup table using the REST API</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-query-a-lookup-table-using-the-REST-API/m-p/331246#M98573</link>
      <description>&lt;P&gt;@raduand, Splunk search results can be pushed to lookup file using &lt;CODE&gt;outputlookup&lt;/CODE&gt;. (Refer to documentation: &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Outputlookup"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Outputlookup&lt;/A&gt;)&lt;/P&gt;

&lt;P&gt;Within Splunk you can read csv file using &lt;CODE&gt;inpulookup&lt;/CODE&gt; command. ( Refer to documentation: &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/inputlookup"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/inputlookup&lt;/A&gt;)&lt;/P&gt;

&lt;P&gt;You can create report with inputlookup command to list the contents of the csv file and the pull the Report results using REST API  &lt;CODE&gt;search/jobs/{search_id}/results&lt;/CODE&gt;. Refer to documentation: &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/RESTREF/RESTsearch#search.2Fjobs.2F.7Bsearch_id.7D.2Fresults"&gt;http://docs.splunk.com/Documentation/Splunk/latest/RESTREF/RESTsearch#search.2Fjobs.2F.7Bsearch_id.7D.2Fresults&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 15:28:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-query-a-lookup-table-using-the-REST-API/m-p/331246#M98573</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-09-12T15:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to query a lookup table using the REST API</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-query-a-lookup-table-using-the-REST-API/m-p/331247#M98574</link>
      <description>&lt;PRE&gt;&lt;CODE&gt; search="| inputlookup lookupname.csv"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Sep 2017 17:49:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-query-a-lookup-table-using-the-REST-API/m-p/331247#M98574</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2017-09-12T17:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to query a lookup table using the REST API</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-query-a-lookup-table-using-the-REST-API/m-p/533414#M150715</link>
      <description>&lt;P&gt;Thanks&amp;nbsp; lot&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/201110"&gt;@niketn&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;you solution work perfectly,&lt;/P&gt;&lt;P&gt;we really miss you... &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2020 08:10:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-query-a-lookup-table-using-the-REST-API/m-p/533414#M150715</guid>
      <dc:creator>rhirasin</dc:creator>
      <dc:date>2020-12-17T08:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to query a lookup table using the REST API</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-query-a-lookup-table-using-the-REST-API/m-p/590838#M205690</link>
      <description>&lt;P&gt;This is great, but is there any way of finding the "search_id" of a scheduled search? I've tried using the search_id that is listed in the URL when opening the search in the GUI and the search_is that is listed on the enpoint&amp;nbsp;&lt;A href="https://community.splunk.com/" target="_blank"&gt;https://&amp;lt;host&amp;gt;:&amp;lt;mPort&amp;gt;/services/search/jobs&lt;/A&gt;&amp;nbsp;(which I found to be not the same for some reason), but I always get the result "Unknown endpoint".&lt;BR /&gt;&lt;BR /&gt;Anyone know how to find the correct ID for a scheduled search?&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2022 11:44:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-query-a-lookup-table-using-the-REST-API/m-p/590838#M205690</guid>
      <dc:creator>hettervik</dc:creator>
      <dc:date>2022-03-25T11:44:36Z</dc:date>
    </item>
  </channel>
</rss>

