<?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: Use lookup table to specify hosts to search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Use-lookup-table-to-specify-hosts-to-search/m-p/94557#M24393</link>
    <description>&lt;P&gt;Most definitely. Use a subsearch for this, it's pretty much exactly what it's for.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;youroutersearch [| inputlookup yourlookuptable | fields host]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 15 Apr 2013 17:37:46 GMT</pubDate>
    <dc:creator>Ayn</dc:creator>
    <dc:date>2013-04-15T17:37:46Z</dc:date>
    <item>
      <title>Use lookup table to specify hosts to search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-lookup-table-to-specify-hosts-to-search/m-p/94556#M24392</link>
      <description>&lt;P&gt;Is there a way to use a lookup table to have a list of host, and use that list to only search logs for those hosts?&lt;/P&gt;

&lt;P&gt;For exmaple, if I have a lookup table like this:&lt;/P&gt;

&lt;P&gt;host,description&lt;BR /&gt;
server1,Description of server1&lt;BR /&gt;
server2,Description of server2&lt;BR /&gt;
server3,Description of server3&lt;/P&gt;

&lt;P&gt;Can I run a search that only searches server1/2/3, but would not look at server4/5/6?&lt;/P&gt;

&lt;P&gt;Basically I'm trying to avoid having to specify host=server1 OR host=server2 OR host=server3 in each search.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2013 17:32:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-lookup-table-to-specify-hosts-to-search/m-p/94556#M24392</guid>
      <dc:creator>jevenson</dc:creator>
      <dc:date>2013-04-15T17:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: Use lookup table to specify hosts to search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-lookup-table-to-specify-hosts-to-search/m-p/94557#M24393</link>
      <description>&lt;P&gt;Most definitely. Use a subsearch for this, it's pretty much exactly what it's for.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;youroutersearch [| inputlookup yourlookuptable | fields host]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 15 Apr 2013 17:37:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-lookup-table-to-specify-hosts-to-search/m-p/94557#M24393</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-04-15T17:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: Use lookup table to specify hosts to search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-lookup-table-to-specify-hosts-to-search/m-p/94558#M24394</link>
      <description>&lt;P&gt;Perfect, this was even easier than I thought. I've got another related question. I'm trying to get a weighted ratio of errors per server. If I have a lookup table like this&lt;/P&gt;

&lt;P&gt;host,percent&lt;BR /&gt;
server1,33&lt;BR /&gt;
server2,33&lt;BR /&gt;
server3,33&lt;/P&gt;

&lt;P&gt;How would I use the lookup table to multiply the errors on a per server basis?&lt;/P&gt;

&lt;P&gt;Normally I'd do something like | chart count by host, but I want a weighted count based on that percent.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2013 17:50:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-lookup-table-to-specify-hosts-to-search/m-p/94558#M24394</guid>
      <dc:creator>jevenson</dc:creator>
      <dc:date>2013-04-15T17:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: Use lookup table to specify hosts to search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-lookup-table-to-specify-hosts-to-search/m-p/94559#M24395</link>
      <description>&lt;P&gt;Best thing is to add that as its own question, and we'll take it from there.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2013 17:52:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-lookup-table-to-specify-hosts-to-search/m-p/94559#M24395</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-04-15T17:52:05Z</dc:date>
    </item>
  </channel>
</rss>

