<?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: Why does a search with inputlookup work when used in Splunk Web, but returns no results when using the REST API? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-a-search-with-inputlookup-work-when-used-in-Splunk-Web/m-p/169575#M34269</link>
    <description>&lt;P&gt;found the issue, its not the issue with REST API but permissions. the lookup permissions are constrained to an app context and the REST search using a different app context. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# curl -ku user:support &lt;A href="https://localhost:8089/servicesNS/admin/search/search/jobs/export" target="test_blank"&gt;https://localhost:8089/servicesNS/admin/search/search/jobs/export&lt;/A&gt; -d search="| inputlookup ip2internalhostname" -d output_mode=json
{"preview":false,"offset":0,"lastrow":true,"result":{"hostname":"big","src":"0.0.0.0"}}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 10 Mar 2015 21:21:01 GMT</pubDate>
    <dc:creator>mohankesireddy</dc:creator>
    <dc:date>2015-03-10T21:21:01Z</dc:date>
    <item>
      <title>Why does a search with inputlookup work when used in Splunk Web, but returns no results when using the REST API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-a-search-with-inputlookup-work-when-used-in-Splunk-Web/m-p/169574#M34268</link>
      <description>&lt;P&gt;"inputlookup" command works fine when I use in Splunk UI, but same search comes back with no results when I search through REST API:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -w "@curl-format.txt" -s -k -u admin:changes  &lt;A href="https://localhost:8089/servicesNS/admin/search/search/jobs" target="test_blank"&gt;https://localhost:8089/servicesNS/admin/search/search/jobs&lt;/A&gt; -d search="| inputlookup lookupdefinition” -d output_mode=json
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Mar 2015 18:27:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-a-search-with-inputlookup-work-when-used-in-Splunk-Web/m-p/169574#M34268</guid>
      <dc:creator>mohankesireddy</dc:creator>
      <dc:date>2015-03-05T18:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Why does a search with inputlookup work when used in Splunk Web, but returns no results when using the REST API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-a-search-with-inputlookup-work-when-used-in-Splunk-Web/m-p/169575#M34269</link>
      <description>&lt;P&gt;found the issue, its not the issue with REST API but permissions. the lookup permissions are constrained to an app context and the REST search using a different app context. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# curl -ku user:support &lt;A href="https://localhost:8089/servicesNS/admin/search/search/jobs/export" target="test_blank"&gt;https://localhost:8089/servicesNS/admin/search/search/jobs/export&lt;/A&gt; -d search="| inputlookup ip2internalhostname" -d output_mode=json
{"preview":false,"offset":0,"lastrow":true,"result":{"hostname":"big","src":"0.0.0.0"}}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 Mar 2015 21:21:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-a-search-with-inputlookup-work-when-used-in-Splunk-Web/m-p/169575#M34269</guid>
      <dc:creator>mohankesireddy</dc:creator>
      <dc:date>2015-03-10T21:21:01Z</dc:date>
    </item>
  </channel>
</rss>

