<?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: Using a lookup to grab a host's subnet and then list out all other hosts in that subnet. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Using-a-lookup-to-grab-a-host-s-subnet-and-then-list-out-all/m-p/22331#M3834</link>
    <description>&lt;P&gt;You should look at subsearches: &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0/Search/Aboutsubsearches"&gt;http://docs.splunk.com/Documentation/Splunk/5.0/Search/Aboutsubsearches&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 05 Nov 2012 03:40:03 GMT</pubDate>
    <dc:creator>gkanapathy</dc:creator>
    <dc:date>2012-11-05T03:40:03Z</dc:date>
    <item>
      <title>Using a lookup to grab a host's subnet and then list out all other hosts in that subnet.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-a-lookup-to-grab-a-host-s-subnet-and-then-list-out-all/m-p/22330#M3833</link>
      <description>&lt;P&gt;I have a lookup table that includes fields for hostname and subnet. I can easily view all hosts in a subnet by searching: |inputlookup subnet_map.csv | where subnet LIKE "111.111.111.111%" | table hostname,subnet ... I'd prefer to be able to grab the subnet field from a search like: |inputlookup subnet_map.csv | where host LIKE "my_host%" | table subnet ... and push it into the "where subnet LIKE "subnet" ... so that I grab a list of all hosts in the matching subnet but by using a single hostname.&lt;/P&gt;

&lt;P&gt;In essence, what I need to do is take the output of one inputlookup request and pipe it to a second one.&lt;/P&gt;

&lt;P&gt;I apologize if I'm wording this poorly.&lt;/P&gt;

&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:44:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-a-lookup-to-grab-a-host-s-subnet-and-then-list-out-all/m-p/22330#M3833</guid>
      <dc:creator>pkeller</dc:creator>
      <dc:date>2020-09-28T12:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using a lookup to grab a host's subnet and then list out all other hosts in that subnet.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-a-lookup-to-grab-a-host-s-subnet-and-then-list-out-all/m-p/22331#M3834</link>
      <description>&lt;P&gt;You should look at subsearches: &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0/Search/Aboutsubsearches"&gt;http://docs.splunk.com/Documentation/Splunk/5.0/Search/Aboutsubsearches&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2012 03:40:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-a-lookup-to-grab-a-host-s-subnet-and-then-list-out-all/m-p/22331#M3834</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2012-11-05T03:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using a lookup to grab a host's subnet and then list out all other hosts in that subnet.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-a-lookup-to-grab-a-host-s-subnet-and-then-list-out-all/m-p/22332#M3835</link>
      <description>&lt;P&gt;Ultimately was able to get this sorted out by using the following search syntax ... &lt;/P&gt;

&lt;P&gt;|inputlookup mylookup.csv | search [|inputlookup mylookup.csv | table hostname,subnet | where hostname like "foobar-host%" | return subnet ]&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2012 23:49:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-a-lookup-to-grab-a-host-s-subnet-and-then-list-out-all/m-p/22332#M3835</guid>
      <dc:creator>pkeller</dc:creator>
      <dc:date>2012-11-26T23:49:29Z</dc:date>
    </item>
  </channel>
</rss>

