<?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: help with inputlookup and a subsearch in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/help-with-inputlookup-and-a-subsearch/m-p/393886#M6345</link>
    <description>&lt;P&gt;What do you get when you run this entire search? Do you get records from your lookup table and nothing from the index?&lt;/P&gt;</description>
    <pubDate>Tue, 09 Apr 2019 14:21:51 GMT</pubDate>
    <dc:creator>grittonc</dc:creator>
    <dc:date>2019-04-09T14:21:51Z</dc:date>
    <item>
      <title>help with inputlookup and a subsearch</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/help-with-inputlookup-and-a-subsearch/m-p/393885#M6344</link>
      <description>&lt;P&gt;hello&lt;/P&gt;

&lt;P&gt;In the search below I try to match host in "host.csv" with host which comes from a subsearch&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup host.csv 
| table host 
| join type=left host 
    [ search index=master-data-lookups sourcetype="view_splunk_assets" 
    | stats count by HOSTNAME TOWN COUNTRY
    | fields - count 
    | rename HOSTNAME as host] 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;what is the problem because I have results when i execute &lt;CODE&gt;| inputlookup host.csv&lt;/CODE&gt; OR  &lt;CODE&gt;index=master-data-lookups sourcetype="view_splunk_assets" &lt;BR /&gt;
        | stats count by HOSTNAME TOWN COUNTRY&lt;BR /&gt;
        | fields - count &lt;BR /&gt;
        | rename HOSTNAME as host&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2019 13:42:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/help-with-inputlookup-and-a-subsearch/m-p/393885#M6344</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2019-04-09T13:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: help with inputlookup and a subsearch</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/help-with-inputlookup-and-a-subsearch/m-p/393886#M6345</link>
      <description>&lt;P&gt;What do you get when you run this entire search? Do you get records from your lookup table and nothing from the index?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2019 14:21:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/help-with-inputlookup-and-a-subsearch/m-p/393886#M6345</guid>
      <dc:creator>grittonc</dc:creator>
      <dc:date>2019-04-09T14:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: help with inputlookup and a subsearch</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/help-with-inputlookup-and-a-subsearch/m-p/393887#M6346</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=master-data-lookups sourcetype="view_splunk_assets" 
| stats count by HOSTNAME TOWN COUNTRY
| fields - count 
| rename HOSTNAME as host
| appendpipe [|inputlookup host.csv 
| table host
| eval sourcetype="csv"]
| stats values(*) AS * BY host
| search sourcetype="csv"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Apr 2019 14:31:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/help-with-inputlookup-and-a-subsearch/m-p/393887#M6346</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-04-09T14:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: help with inputlookup and a subsearch</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/help-with-inputlookup-and-a-subsearch/m-p/393888#M6347</link>
      <description>&lt;P&gt;What is the significance to putting the index search first?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2019 15:07:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/help-with-inputlookup-and-a-subsearch/m-p/393888#M6347</guid>
      <dc:creator>grittonc</dc:creator>
      <dc:date>2019-04-09T15:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: help with inputlookup and a subsearch</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/help-with-inputlookup-and-a-subsearch/m-p/393889#M6348</link>
      <description>&lt;P&gt;In your search statement,  "host.csv" is 1 and ”subsearch” is the first one.&lt;BR /&gt;
 If you want  "host.csv" to connect multiple ”subsearch” to 1 change the max value. &lt;/P&gt;

&lt;P&gt;host.csv&lt;BR /&gt;
A&lt;BR /&gt;
B&lt;BR /&gt;
C&lt;/P&gt;

&lt;P&gt;”subsearch”&lt;BR /&gt;
A TOWN1 COUNTRY1&lt;BR /&gt;
A TOWN2 COUNTRY2&lt;BR /&gt;
C TOWN3 COUNTRY3&lt;BR /&gt;
C TOWN4 COUNTRY4&lt;/P&gt;

&lt;P&gt;your search results&lt;BR /&gt;
A TOWN1 COUNTRY1&lt;BR /&gt;
B&lt;BR /&gt;
C TOWN3 COUNTRY3&lt;/P&gt;

&lt;P&gt;What do you want to do?&lt;/P&gt;

&lt;P&gt;join-options&lt;BR /&gt;
Syntax: type=(inner | outer | left) | usetime= | earlier= | overwrite= | max=&lt;BR /&gt;
Description: Options to the join command. Use either outer or left to specify a left outer join.&lt;/P&gt;

&lt;P&gt;max&lt;BR /&gt;
Syntax: max=&lt;BR /&gt;
Description: Specifies the maximum number of subsearch results that each main search result can join with. If set to max=0, there is no limit.&lt;BR /&gt;
Default: 1&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2019 15:39:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/help-with-inputlookup-and-a-subsearch/m-p/393889#M6348</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2019-04-09T15:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: help with inputlookup and a subsearch</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/help-with-inputlookup-and-a-subsearch/m-p/393890#M6349</link>
      <description>&lt;P&gt;thanks a lot&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2019 04:47:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/help-with-inputlookup-and-a-subsearch/m-p/393890#M6349</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2019-04-10T04:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: help with inputlookup and a subsearch</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/help-with-inputlookup-and-a-subsearch/m-p/393891#M6350</link>
      <description>&lt;P&gt;Because the &lt;CODE&gt;appendpipe [|inputlookup ...]&lt;/CODE&gt; trick that I invented somehow bypasses the subsearch limits, but the normal search will not.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2019 01:36:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/help-with-inputlookup-and-a-subsearch/m-p/393891#M6350</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-04-11T01:36:50Z</dc:date>
    </item>
  </channel>
</rss>

