<?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: baic question on inputlookup in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/baic-question-on-inputlookup/m-p/417982#M171814</link>
    <description>&lt;P&gt;@jip31 try with the following subsearch in your query&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[|inputlookup host.csv | table host]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 17 Apr 2019 08:10:40 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2019-04-17T08:10:40Z</dc:date>
    <item>
      <title>baic question on inputlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/baic-question-on-inputlookup/m-p/417981#M171813</link>
      <description>&lt;P&gt;hi&lt;/P&gt;

&lt;P&gt;I have diffuclties to understand how inputlookup works&lt;BR /&gt;
I use the search below&lt;BR /&gt;
    index="x" sourcetype=y source="z" EventCode=6008 which returns events&lt;BR /&gt;
now I want to do the same check from a csv list&lt;BR /&gt;
so i am doing&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="x" sourcetype=y source="z" EventCode=6008  [|inputlookup host.csv ]| stats count by host 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but I have no results even if the is host from csv file which have eventcode=6008&lt;BR /&gt;
is my query is wrong?&lt;BR /&gt;
thanks for your help&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 08:05:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/baic-question-on-inputlookup/m-p/417981#M171813</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2019-04-17T08:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: baic question on inputlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/baic-question-on-inputlookup/m-p/417982#M171814</link>
      <description>&lt;P&gt;@jip31 try with the following subsearch in your query&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[|inputlookup host.csv | table host]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Apr 2019 08:10:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/baic-question-on-inputlookup/m-p/417982#M171814</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-04-17T08:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: baic question on inputlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/baic-question-on-inputlookup/m-p/417983#M171815</link>
      <description>&lt;P&gt;Hi, what you are looking for, is called &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/lookup"&gt;lookup&lt;/A&gt;, &lt;STRONG&gt;not&lt;/STRONG&gt; inputlookup. &lt;CODE&gt;inputlookup&lt;/CODE&gt; is a leading command that just outputs a lookup file. Also, there is no need for the square brackets when using lookup. Just look at the examples mentioned in the docs. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Skalli&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 08:11:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/baic-question-on-inputlookup/m-p/417983#M171815</guid>
      <dc:creator>skalliger</dc:creator>
      <dc:date>2019-04-17T08:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: baic question on inputlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/baic-question-on-inputlookup/m-p/417984#M171816</link>
      <description>&lt;P&gt;thanks renjith but I have something strange&lt;BR /&gt;
when I execute this for the host tutu I have events&lt;BR /&gt;
    index="x" sourcetype=y  EventCode=* host=tutu&lt;BR /&gt;
    | dedup _time &lt;BR /&gt;
    | stats count(EventCode) as Total by host &lt;BR /&gt;
    | sort -Total limit=10&lt;/P&gt;

&lt;P&gt;The host tutu exists in the CSV file but if I done this I have no results....&lt;BR /&gt;
So it seems that the subsearch not working ...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    index="x" sourcetype=y  EventCode=* 
    | dedup _time [|inputlookup host.csv | table host]
    | stats count(EventCode) as Total by host 
    | sort -Total limit=10
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Have you an idea please??&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 09:25:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/baic-question-on-inputlookup/m-p/417984#M171816</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2019-04-17T09:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: baic question on inputlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/baic-question-on-inputlookup/m-p/417985#M171817</link>
      <description>&lt;P&gt;Like I said, inputlookup is the wrong command for your use case.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 09:31:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/baic-question-on-inputlookup/m-p/417985#M171817</guid>
      <dc:creator>skalliger</dc:creator>
      <dc:date>2019-04-17T09:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: baic question on inputlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/baic-question-on-inputlookup/m-p/417986#M171818</link>
      <description>&lt;P&gt;ok ...&lt;BR /&gt;
So i done&lt;BR /&gt;
    index="x" sourcetype=y source="z" EventCode=6008&lt;BR /&gt;
    | dedup _time &lt;BR /&gt;
    | lookup host.csv host &lt;BR /&gt;
    | stats count(EventCode) as Total by host &lt;BR /&gt;
    | sort -Total limit=10&lt;/P&gt;

&lt;P&gt;But I have the message Error in 'lookup' command: Could not find all of the specified lookup fields in the lookup table.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 09:59:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/baic-question-on-inputlookup/m-p/417986#M171818</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2019-04-17T09:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: baic question on inputlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/baic-question-on-inputlookup/m-p/417987#M171819</link>
      <description>&lt;P&gt;@ skalliger &lt;BR /&gt;
 [|inputlookup host.csv | table host] OR | lookup host.csv host are not the same??&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 10:32:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/baic-question-on-inputlookup/m-p/417987#M171819</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2019-04-17T10:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: baic question on inputlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/baic-question-on-inputlookup/m-p/417988#M171820</link>
      <description>&lt;P&gt;@jip31 You can try below, also make sure the column name in your csv file is host and not Host or anything else.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index="x" sourcetype=y source="z" EventCode=6008  | lookup host.csv host OUTPUT host|  stats count by host 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Apr 2019 15:12:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/baic-question-on-inputlookup/m-p/417988#M171820</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2019-04-17T15:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: baic question on inputlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/baic-question-on-inputlookup/m-p/417989#M171821</link>
      <description>&lt;P&gt;Is this code is correct?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="X" sourcetype=Y EventCode=* 
  [|lookup host.csv host OUTPUT host]
     | stats count(EventCode) as Total by host 
     | sort -Total limit=10
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Apr 2019 15:20:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/baic-question-on-inputlookup/m-p/417989#M171821</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2019-04-17T15:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: baic question on inputlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/baic-question-on-inputlookup/m-p/417990#M171822</link>
      <description>&lt;P&gt;Thanks&lt;BR /&gt;
Yes it seems to be ok&lt;BR /&gt;
last question&lt;BR /&gt;
Could you confirm that index="x" sourcetype=y source="z" EventCode=6008  [|inputlookup host.csv host OUTPUT host]  stats count by host is the same thing that index="x" sourcetype=y source="z" EventCode=6008  | lookup host.csv host OUTPUT host|  stats count by host ?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 15:42:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/baic-question-on-inputlookup/m-p/417990#M171822</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2019-04-17T15:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: baic question on inputlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/baic-question-on-inputlookup/m-p/417991#M171823</link>
      <description>&lt;P&gt;@jip31 - With inputlookup you don't user the fieldname and OUTPUT. With inputlookup it will be &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  index="x" sourcetype=y source="z" EventCode=6008 [|inputlookup host.csv ]| stats count by host
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Apr 2019 15:57:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/baic-question-on-inputlookup/m-p/417991#M171823</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2019-04-17T15:57:46Z</dc:date>
    </item>
  </channel>
</rss>

