<?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 Lookup query not working in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Lookup-query-not-working/m-p/477462#M133997</link>
    <description>&lt;P&gt;All, &lt;/P&gt;

&lt;P&gt;I am running Splunk 7.2.6 under Debian 9.9.&lt;/P&gt;

&lt;P&gt;I am searching using index = main and picking the top 5 http status codes.&lt;/P&gt;

&lt;P&gt;I am attempting to "pipe" those codes to a lookup function; however, I am not getting any output from the lookup command&lt;/P&gt;

&lt;P&gt;Here is the first part of the Search String: index=main | top field11 showperc=false, showcount=false&lt;/P&gt;

&lt;P&gt;Here is what the output looks like&lt;/P&gt;

&lt;P&gt;field11&lt;BR /&gt;&lt;BR /&gt;
  302&lt;BR /&gt;&lt;BR /&gt;
  301&lt;BR /&gt;&lt;BR /&gt;
  200&lt;BR /&gt;&lt;BR /&gt;
  404&lt;BR /&gt;&lt;BR /&gt;
  500        &lt;/P&gt;

&lt;P&gt;I am attempting to "pipe" the output to a lookup command: "lookup http_status status OUTPUT status_description, status_type"&lt;/P&gt;

&lt;P&gt;Here is the contents of the http_status.csv file:&lt;/P&gt;

&lt;P&gt;status,status_description,status_type&lt;BR /&gt;
100,Continue,Informational&lt;BR /&gt;
101,Switching Protocols,Informational&lt;BR /&gt;
200,OK,Successful&lt;BR /&gt;
201,Created,Successful&lt;BR /&gt;
202,Accepted,Successful&lt;BR /&gt;
203,Non-Authoritative Information,Successful&lt;BR /&gt;
204,No Content,Successful&lt;BR /&gt;
205,Reset Content,Successful&lt;BR /&gt;
206,Partial Content,Successful&lt;BR /&gt;
300,Multiple Choices,Redirection&lt;BR /&gt;
301,Moved Permanently,Redirection&lt;BR /&gt;
302,Found,Redirection&lt;BR /&gt;
303,See Other,Redirection&lt;BR /&gt;
304,Not Modified,Redirection&lt;BR /&gt;
305,Use Proxy,Redirection&lt;BR /&gt;
307,Temporary Redirect,Redirection&lt;BR /&gt;
400,Bad Request,Client Error&lt;BR /&gt;
401,Unauthorized,Client Error&lt;BR /&gt;
402,Payment Required,Client Error&lt;BR /&gt;
403,Forbidden,Client Error&lt;BR /&gt;
404,Not Found,Client Error&lt;BR /&gt;
405,Method Not Allowed,Client Error&lt;BR /&gt;
406,Not Acceptable,Client Error&lt;BR /&gt;
407,Proxy Authentication Required,Client Error&lt;BR /&gt;
408,Request Timeout,Client Error&lt;BR /&gt;
409,Conflict,Client Error&lt;BR /&gt;
410,Gone,Client Error&lt;BR /&gt;
411,Length Required,Client Error&lt;BR /&gt;
412,Precondition Failed,Client Error&lt;BR /&gt;
413,Request Entity Too Large,Client Error&lt;BR /&gt;
414,Request-URI Too Long,Client Error&lt;BR /&gt;
415,Unsupported Media Type,Client Error&lt;BR /&gt;
416,Requested Range Not Satisfiable,Client Error&lt;BR /&gt;
417,Expectation Failed,Client Error&lt;BR /&gt;
500,Internal Server Error,Server Error&lt;BR /&gt;
501,Not Implemented,Server Error&lt;BR /&gt;
502,Bad Gateway,Server Error&lt;BR /&gt;
503,Service Unavailable,Server Error&lt;BR /&gt;
504,Gateway Timeout,Server Error&lt;BR /&gt;
505,HTTP Version Not Supported,Server Error&lt;/P&gt;

&lt;P&gt;Issue:  I am not seeing either the status_description or the status_type in the output.&lt;/P&gt;

&lt;P&gt;It's like the lookup is not working.&lt;/P&gt;

&lt;P&gt;I can run the following command and see the http_status.csv file:  |inputlookup http_status&lt;/P&gt;

&lt;P&gt;Any help would be appreciated...&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 02:08:28 GMT</pubDate>
    <dc:creator>snappersdad</dc:creator>
    <dc:date>2020-09-30T02:08:28Z</dc:date>
    <item>
      <title>Lookup query not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-query-not-working/m-p/477462#M133997</link>
      <description>&lt;P&gt;All, &lt;/P&gt;

&lt;P&gt;I am running Splunk 7.2.6 under Debian 9.9.&lt;/P&gt;

&lt;P&gt;I am searching using index = main and picking the top 5 http status codes.&lt;/P&gt;

&lt;P&gt;I am attempting to "pipe" those codes to a lookup function; however, I am not getting any output from the lookup command&lt;/P&gt;

&lt;P&gt;Here is the first part of the Search String: index=main | top field11 showperc=false, showcount=false&lt;/P&gt;

&lt;P&gt;Here is what the output looks like&lt;/P&gt;

&lt;P&gt;field11&lt;BR /&gt;&lt;BR /&gt;
  302&lt;BR /&gt;&lt;BR /&gt;
  301&lt;BR /&gt;&lt;BR /&gt;
  200&lt;BR /&gt;&lt;BR /&gt;
  404&lt;BR /&gt;&lt;BR /&gt;
  500        &lt;/P&gt;

&lt;P&gt;I am attempting to "pipe" the output to a lookup command: "lookup http_status status OUTPUT status_description, status_type"&lt;/P&gt;

&lt;P&gt;Here is the contents of the http_status.csv file:&lt;/P&gt;

&lt;P&gt;status,status_description,status_type&lt;BR /&gt;
100,Continue,Informational&lt;BR /&gt;
101,Switching Protocols,Informational&lt;BR /&gt;
200,OK,Successful&lt;BR /&gt;
201,Created,Successful&lt;BR /&gt;
202,Accepted,Successful&lt;BR /&gt;
203,Non-Authoritative Information,Successful&lt;BR /&gt;
204,No Content,Successful&lt;BR /&gt;
205,Reset Content,Successful&lt;BR /&gt;
206,Partial Content,Successful&lt;BR /&gt;
300,Multiple Choices,Redirection&lt;BR /&gt;
301,Moved Permanently,Redirection&lt;BR /&gt;
302,Found,Redirection&lt;BR /&gt;
303,See Other,Redirection&lt;BR /&gt;
304,Not Modified,Redirection&lt;BR /&gt;
305,Use Proxy,Redirection&lt;BR /&gt;
307,Temporary Redirect,Redirection&lt;BR /&gt;
400,Bad Request,Client Error&lt;BR /&gt;
401,Unauthorized,Client Error&lt;BR /&gt;
402,Payment Required,Client Error&lt;BR /&gt;
403,Forbidden,Client Error&lt;BR /&gt;
404,Not Found,Client Error&lt;BR /&gt;
405,Method Not Allowed,Client Error&lt;BR /&gt;
406,Not Acceptable,Client Error&lt;BR /&gt;
407,Proxy Authentication Required,Client Error&lt;BR /&gt;
408,Request Timeout,Client Error&lt;BR /&gt;
409,Conflict,Client Error&lt;BR /&gt;
410,Gone,Client Error&lt;BR /&gt;
411,Length Required,Client Error&lt;BR /&gt;
412,Precondition Failed,Client Error&lt;BR /&gt;
413,Request Entity Too Large,Client Error&lt;BR /&gt;
414,Request-URI Too Long,Client Error&lt;BR /&gt;
415,Unsupported Media Type,Client Error&lt;BR /&gt;
416,Requested Range Not Satisfiable,Client Error&lt;BR /&gt;
417,Expectation Failed,Client Error&lt;BR /&gt;
500,Internal Server Error,Server Error&lt;BR /&gt;
501,Not Implemented,Server Error&lt;BR /&gt;
502,Bad Gateway,Server Error&lt;BR /&gt;
503,Service Unavailable,Server Error&lt;BR /&gt;
504,Gateway Timeout,Server Error&lt;BR /&gt;
505,HTTP Version Not Supported,Server Error&lt;/P&gt;

&lt;P&gt;Issue:  I am not seeing either the status_description or the status_type in the output.&lt;/P&gt;

&lt;P&gt;It's like the lookup is not working.&lt;/P&gt;

&lt;P&gt;I can run the following command and see the http_status.csv file:  |inputlookup http_status&lt;/P&gt;

&lt;P&gt;Any help would be appreciated...&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:08:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-query-not-working/m-p/477462#M133997</guid>
      <dc:creator>snappersdad</dc:creator>
      <dc:date>2020-09-30T02:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup query not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-query-not-working/m-p/477463#M133998</link>
      <description>&lt;P&gt;You need to tell the lookup which fields to match, in this case you want to match the status field in the lookup against field11 &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| lookup http_status status as field11 OUTPUT status_description, status_type
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You could also rename field11 before doing the lookup:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rename field11 as status
| lookup http_status status OUTPUT status_description, status_type
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Sep 2019 17:05:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-query-not-working/m-p/477463#M133998</guid>
      <dc:creator>solarboyz1</dc:creator>
      <dc:date>2019-09-05T17:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup query not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-query-not-working/m-p/477464#M133999</link>
      <description>&lt;P&gt;THANK YOU!&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2019 18:08:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-query-not-working/m-p/477464#M133999</guid>
      <dc:creator>snappersdad</dc:creator>
      <dc:date>2019-09-05T18:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup query not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-query-not-working/m-p/477465#M134000</link>
      <description>&lt;P&gt;Any time, if it worked please accept the answer. &lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2019 18:12:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-query-not-working/m-p/477465#M134000</guid>
      <dc:creator>solarboyz1</dc:creator>
      <dc:date>2019-09-05T18:12:33Z</dc:date>
    </item>
  </channel>
</rss>

