<?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: lookup command is not working in Splunk REST API in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-is-lookup-command-not-working-in-Splunk-REST-API/m-p/647470#M224097</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/63450"&gt;@georgear7&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I have the same problem, i am unable to run queries with lookups in Splunk with python.&lt;/P&gt;&lt;P&gt;Have you fix that problem?&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Jun 2023 10:32:10 GMT</pubDate>
    <dc:creator>Perichila</dc:creator>
    <dc:date>2023-06-19T10:32:10Z</dc:date>
    <item>
      <title>Why is lookup command not working in Splunk REST API?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-lookup-command-not-working-in-Splunk-REST-API/m-p/628063#M218196</link>
      <description>&lt;P&gt;&lt;FONT face="trebuchet ms,geneva" size="3"&gt;I'm consuming data from Splunk REST API endpoints for other purposes. However, it is throwing this error because I used the "lookup" command in the query. Could anyone assist me in resolving this issue?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="trebuchet ms,geneva" size="3"&gt;If the "lookup" command is not used, the query works properly.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;U&gt;&lt;STRONG&gt;&lt;FONT face="trebuchet ms,geneva" size="3"&gt;Error:&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/U&gt;&lt;BR /&gt;&lt;FONT face="trebuchet ms,geneva" size="3"&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="trebuchet ms,geneva" size="3"&gt;&amp;lt;response&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="trebuchet ms,geneva" size="3"&gt;&amp;lt;messages&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="trebuchet ms,geneva" size="3"&gt;&amp;lt;msg type="FATAL"&amp;gt;&lt;STRONG&gt;Error in 'lookup' command: Could not construct lookup 'master_sheet.csv&lt;/STRONG&gt;, host, as, host, OUTPUT, LOB, Region, Application, Environment'. See search.log for more details.&amp;lt;/msg&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="trebuchet ms,geneva" size="3"&gt;&amp;lt;/messages&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="trebuchet ms,geneva" size="3"&gt;&amp;lt;/response&amp;gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;&lt;FONT face="trebuchet ms,geneva"&gt;Query:&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/U&gt;&lt;BR /&gt;&lt;FONT face="trebuchet ms,geneva" size="3"&gt;curl -k -u user:pass &lt;A href="https://localhost:8089/services/search/jobs" target="_blank" rel="noopener"&gt;https://localhost:8089/services/search/jobs&lt;/A&gt; --data-urlencode search='search index=foo sourcetype=abc source=*fs.log | rex "(?&amp;lt;Date&amp;gt;.*)\|(?&amp;lt;Mounted&amp;gt;.*)\|(?&amp;lt;Size&amp;gt;.*)\|(?&amp;lt;Used&amp;gt;.*)\|(?&amp;lt;Avail&amp;gt;.*)\|(?&amp;lt;Used_PCT&amp;gt;.*)\|(?&amp;lt;Filesystem&amp;gt;.*)" | eval Used_PCT=replace(Used_PCT,"%","") | search Filesystem IN (/apps, /logs) | stats latest(*) as * by host,Filesystem | where Used_PCT&amp;gt;=80 | sort -Used_PCT | rename Used_PCT as "Use%" | table host,Filesystem,Size,Used,Avail,Use% | lookup master_sheet.csv host as host OUTPUT LOB,Region,Application,Environment | table host,LOB,Region,Application,Environment,Filesystem,Size,Used,Avail,"Use%"' -d id=mysearch_1234567&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="trebuchet ms,geneva" size="3"&gt;curl -u user:pass -k &lt;A href="https://localhost:8089/services/search/jobs/mysearch_1234567/results" target="_blank" rel="noopener"&gt;https://localhost:8089/services/search/jobs/mysearch_1234567/results&lt;/A&gt; --get -d output_mode=csv&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 16:17:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-lookup-command-not-working-in-Splunk-REST-API/m-p/628063#M218196</guid>
      <dc:creator>georgear7</dc:creator>
      <dc:date>2023-01-24T16:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: lookup command is not working in Splunk REST API</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-lookup-command-not-working-in-Splunk-REST-API/m-p/628067#M218197</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/63450"&gt;@georgear7&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;1. Check if you can run the query in the search app&lt;BR /&gt;2. Check the API user role permissions to master_sheet.csv in Splunk&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 07:05:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-lookup-command-not-working-in-Splunk-REST-API/m-p/628067#M218197</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2023-01-24T07:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: lookup command is not working in Splunk REST API</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-lookup-command-not-working-in-Splunk-REST-API/m-p/628782#M218415</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/129090"&gt;@manjunathmeti&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1. Check if you can run the query in the search app - &lt;STRONG&gt;Yes, it's runing fine &amp;amp; producing results&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Check the API user role permissions to master_sheet.csv in Splunk - &lt;STRONG&gt;Lookup file is owned by my ID. So there should not be any permission issue.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2023 05:45:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-lookup-command-not-working-in-Splunk-REST-API/m-p/628782#M218415</guid>
      <dc:creator>georgear7</dc:creator>
      <dc:date>2023-01-30T05:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: lookup command is not working in Splunk REST API</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-lookup-command-not-working-in-Splunk-REST-API/m-p/628784#M218417</link>
      <description>&lt;PRE&gt;Check search.log in&amp;nbsp;Search job inspector for search SID.&lt;BR /&gt;&lt;BR /&gt;Activity &amp;gt;&amp;gt; Jobs&lt;/PRE&gt;</description>
      <pubDate>Mon, 30 Jan 2023 06:23:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-lookup-command-not-working-in-Splunk-REST-API/m-p/628784#M218417</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2023-01-30T06:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: lookup command is not working in Splunk REST API</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-lookup-command-not-working-in-Splunk-REST-API/m-p/647470#M224097</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/63450"&gt;@georgear7&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I have the same problem, i am unable to run queries with lookups in Splunk with python.&lt;/P&gt;&lt;P&gt;Have you fix that problem?&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2023 10:32:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-lookup-command-not-working-in-Splunk-REST-API/m-p/647470#M224097</guid>
      <dc:creator>Perichila</dc:creator>
      <dc:date>2023-06-19T10:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: lookup command is not working in Splunk REST API</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-lookup-command-not-working-in-Splunk-REST-API/m-p/648447#M224356</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;have you try /servicesNS/ instead of /services/ ? Like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl -ku $PASS https://localhost:8089/servicesNS/nobody/search/search/jobs --data-urlencode ....&lt;/LI-CODE&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 08:40:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-lookup-command-not-working-in-Splunk-REST-API/m-p/648447#M224356</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2023-06-28T08:40:52Z</dc:date>
    </item>
  </channel>
</rss>

