<?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: How to edit an inputlookup search that displays table of hostnames against corresponding indexes? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-an-inputlookup-search-that-displays-table-of/m-p/294992#M89023</link>
    <description>&lt;P&gt;I still get No results found.&lt;/P&gt;</description>
    <pubDate>Sun, 12 Feb 2017 15:00:12 GMT</pubDate>
    <dc:creator>gener_yc</dc:creator>
    <dc:date>2017-02-12T15:00:12Z</dc:date>
    <item>
      <title>How to edit an inputlookup search that displays table of hostnames against corresponding indexes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-an-inputlookup-search-that-displays-table-of/m-p/294990#M89021</link>
      <description>&lt;P&gt;I have an inputlookup called hosts.csv that looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host
----------
hostname1
hostname2
hostname3
hostname4
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want to list all indexes containing the value of host in raw data against that hostname. So the output I am looking for is...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host                index
------------------------------
hostname1        firewall
                 web
                 unix
                 proxy
hostname2        firewall
                 database
                 unix
                 dmz
hostname3        firewall
                 proxy
hostname4        firewall
                 proxy
                 windows 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have tried using the search below which gives me matching indexes containing the hostnames in raw data. But I am not able to create a table to list the hostnames against the indexes.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[|inputlookup hosts.csv|table host|rename host as search|format]|stats values(index)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I tried adding  &lt;CODE&gt;code...|lookup hosts.csv host OUTPUT host| stats  values(index) by host&lt;/CODE&gt; and get no results. Can you please help me obtain the output above?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2017 21:58:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-an-inputlookup-search-that-displays-table-of/m-p/294990#M89021</guid>
      <dc:creator>gener_yc</dc:creator>
      <dc:date>2017-02-10T21:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit an inputlookup search that displays table of hostnames against corresponding indexes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-an-inputlookup-search-that-displays-table-of/m-p/294991#M89022</link>
      <description>&lt;PRE&gt;
|tstats count WHERE index=* by host,index| table host index | search [|inputlookup hosts.csv] | stats values(index) by host
&lt;/PRE&gt;</description>
      <pubDate>Sat, 11 Feb 2017 00:05:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-an-inputlookup-search-that-displays-table-of/m-p/294991#M89022</guid>
      <dc:creator>pradeepkumarg</dc:creator>
      <dc:date>2017-02-11T00:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit an inputlookup search that displays table of hostnames against corresponding indexes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-an-inputlookup-search-that-displays-table-of/m-p/294992#M89023</link>
      <description>&lt;P&gt;I still get No results found.&lt;/P&gt;</description>
      <pubDate>Sun, 12 Feb 2017 15:00:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-an-inputlookup-search-that-displays-table-of/m-p/294992#M89023</guid>
      <dc:creator>gener_yc</dc:creator>
      <dc:date>2017-02-12T15:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit an inputlookup search that displays table of hostnames against corresponding indexes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-an-inputlookup-search-that-displays-table-of/m-p/294993#M89024</link>
      <description>&lt;P&gt;does the host name in your lookup match exactly with the host names in your splunk data?&lt;/P&gt;</description>
      <pubDate>Sun, 12 Feb 2017 17:16:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-an-inputlookup-search-that-displays-table-of/m-p/294993#M89024</guid>
      <dc:creator>pradeepkumarg</dc:creator>
      <dc:date>2017-02-12T17:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit an inputlookup search that displays table of hostnames against corresponding indexes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-an-inputlookup-search-that-displays-table-of/m-p/294994#M89025</link>
      <description>&lt;P&gt;Yes they match, even though they are part of an fqdn I can see them in raw data when I query for them using &lt;CODE&gt;...|rename host as search|format&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;Also splunk produces a list of matching indices when I use the query &lt;CODE&gt;[|inputlookup hosts.csv|table host|rename host as search|format]|stats values(index)&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;I just am struggling to append the index list with the hostnames from the lookup.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2017 13:03:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-an-inputlookup-search-that-displays-table-of/m-p/294994#M89025</guid>
      <dc:creator>gener_yc</dc:creator>
      <dc:date>2017-02-13T13:03:40Z</dc:date>
    </item>
  </channel>
</rss>

