<?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: Splunklib API retrieve inputlookup in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunklib-API-retrieve-inputlookup/m-p/564274#M196562</link>
    <description>&lt;P&gt;Thanks for your help&lt;/P&gt;</description>
    <pubDate>Mon, 23 Aug 2021 08:03:39 GMT</pubDate>
    <dc:creator>Tim00</dc:creator>
    <dc:date>2021-08-23T08:03:39Z</dc:date>
    <item>
      <title>Splunklib API retrieve inputlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunklib-API-retrieve-inputlookup/m-p/563369#M196290</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;have been using the splunklib package in Python to connect to the Splunk API for some time now, and it works fine. As sample search I use is provided below:&lt;/P&gt;&lt;P&gt;searchquery = """search index=wineventlog EventCode=4688 earliest=-4h | fields user, ETC, ETC, ETC&lt;BR /&gt;| table user, ETC, ETC, ETC"""&lt;BR /&gt;resolveQuery = SplunkQuery(host, port, username, password)&lt;BR /&gt;df = resolveQuery.splunk_fetch(searchquery)&lt;/P&gt;&lt;P&gt;The search return a pandas dataframe (in Python) containing the required information.&lt;/P&gt;&lt;P&gt;When I try to retrieve an inputlookup however, the search doesn't return any information, only an empty dataframe.&amp;nbsp; Below is an example of a searchquery I use to try and retrieve an inputlookup:&lt;/P&gt;&lt;P&gt;searchquery = """search | inputlookup infomation.csv"""&lt;/P&gt;&lt;P&gt;Any help would be highly appreciated: how can I retrieve inputlookups using the Splunklib package in Python?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2021 07:45:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunklib-API-retrieve-inputlookup/m-p/563369#M196290</guid>
      <dc:creator>Tim00</dc:creator>
      <dc:date>2021-08-16T07:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: Splunklib API retrieve inputlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunklib-API-retrieve-inputlookup/m-p/563469#M196304</link>
      <description>&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;inputlookup&lt;/FONT&gt; command is supposed to be the first command in a query.&amp;nbsp; Try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;searchquery = """| inputlookup infomation.csv"""&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2021 12:35:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunklib-API-retrieve-inputlookup/m-p/563469#M196304</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-08-16T12:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: Splunklib API retrieve inputlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunklib-API-retrieve-inputlookup/m-p/564274#M196562</link>
      <description>&lt;P&gt;Thanks for your help&lt;/P&gt;</description>
      <pubDate>Mon, 23 Aug 2021 08:03:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunklib-API-retrieve-inputlookup/m-p/564274#M196562</guid>
      <dc:creator>Tim00</dc:creator>
      <dc:date>2021-08-23T08:03:39Z</dc:date>
    </item>
  </channel>
</rss>

