<?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: Updating managed lookup via api in cloud in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Updating-managed-lookup-via-api-in-cloud/m-p/594156#M10562</link>
    <description>&lt;P&gt;You may need to put in a support request to have your IP address added to the allowlist for API access to your cloud instance, but otherwise yes it should work with a cloud instance.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/8.2.2201/RESTTUT/RESTandCloud" target="_blank"&gt;https://docs.splunk.com/Documentation/SplunkCloud/8.2.2201/RESTTUT/RESTandCloud&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Apr 2022 20:33:32 GMT</pubDate>
    <dc:creator>mcmaster</dc:creator>
    <dc:date>2022-04-18T20:33:32Z</dc:date>
    <item>
      <title>Updating managed lookup via api in cloud</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Updating-managed-lookup-via-api-in-cloud/m-p/594089#M10559</link>
      <description>&lt;P&gt;Hello Community!&lt;BR /&gt;&lt;BR /&gt;We have a particular set of searches that rely on a lookup against a managed lookup (adhock).&amp;nbsp; The lookup is 2 columns, Username and Status.&amp;nbsp; Currently, we update this list manually every day by going in to content management, searching for the file, and then adding and deleting entries.&lt;/P&gt;
&lt;P&gt;This was ok to start, but now the list is getting unmanageable.&lt;/P&gt;
&lt;P&gt;What we would like to do, ideally, is take a local CSV and upload it over top of the one that exists via a PoweShell script that will be run on a local machine.&amp;nbsp; If that is not an option, I would be willing to have a script that creates a search to update the managed lookup that can be copied and pasted into a search.&lt;/P&gt;
&lt;P&gt;looking for suggestions and ideas.&amp;nbsp; Thanks in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 16:46:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Updating-managed-lookup-via-api-in-cloud/m-p/594089#M10559</guid>
      <dc:creator>FuzzySteve</dc:creator>
      <dc:date>2022-04-19T16:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: Updating managed lookup via api in cloud</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Updating-managed-lookup-via-api-in-cloud/m-p/594131#M10560</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244985"&gt;@FuzzySteve&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Unfortunately there's no built-in way to do what you're trying to do. You could script the conversion of a .csv file into SPL to generate a lookup, or if you have the Lookup Editor app installed (&lt;A href="https://splunkbase.splunk.com/app/1724/" target="_blank"&gt;https://splunkbase.splunk.com/app/1724/&lt;/A&gt;) it provides a REST API endpoint that you might be able to use to update the lookup. Here's an example:&lt;/P&gt;&lt;PRE&gt;curl -k -u admin:password -X POST -d namespace=search -d lookup_file=users.csv -d contents='[["username", "email"], ["admin", "admin@example.com"]]' https://localhost:8089/servicesNS/nobody/lookup_editor/data/lookup_edit/lookup_contents&lt;/PRE&gt;&lt;P&gt;The contents value is just a JSON array of arrays - the outer array makes up the "rows" of the CSV file and the inner arrays make up the "columns".&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2022 18:00:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Updating-managed-lookup-via-api-in-cloud/m-p/594131#M10560</guid>
      <dc:creator>mcmaster</dc:creator>
      <dc:date>2022-04-18T18:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: Updating managed lookup via api in cloud</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Updating-managed-lookup-via-api-in-cloud/m-p/594154#M10561</link>
      <description>&lt;P&gt;We do not use the lookup editor app but I will investigate if we can have it added to our instance.&lt;BR /&gt;your curl example looks similar to some other posts I've seen here. My concern is that it's targeted at a local host.&amp;nbsp; Would it work with a cloud instance?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2022 20:22:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Updating-managed-lookup-via-api-in-cloud/m-p/594154#M10561</guid>
      <dc:creator>FuzzySteve</dc:creator>
      <dc:date>2022-04-18T20:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: Updating managed lookup via api in cloud</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Updating-managed-lookup-via-api-in-cloud/m-p/594156#M10562</link>
      <description>&lt;P&gt;You may need to put in a support request to have your IP address added to the allowlist for API access to your cloud instance, but otherwise yes it should work with a cloud instance.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/8.2.2201/RESTTUT/RESTandCloud" target="_blank"&gt;https://docs.splunk.com/Documentation/SplunkCloud/8.2.2201/RESTTUT/RESTandCloud&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2022 20:33:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Updating-managed-lookup-via-api-in-cloud/m-p/594156#M10562</guid>
      <dc:creator>mcmaster</dc:creator>
      <dc:date>2022-04-18T20:33:32Z</dc:date>
    </item>
  </channel>
</rss>

