<?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: Create table containing hosts,sources metadata? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Create-table-containing-hosts-sources-metadata/m-p/60847#M14970</link>
    <description>&lt;P&gt;Excellent, gives me just what I was looking for.&lt;/P&gt;</description>
    <pubDate>Tue, 31 Jan 2012 13:46:13 GMT</pubDate>
    <dc:creator>gowen</dc:creator>
    <dc:date>2012-01-31T13:46:13Z</dc:date>
    <item>
      <title>Create table containing hosts,sources metadata?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-table-containing-hosts-sources-metadata/m-p/60844#M14967</link>
      <description>&lt;P&gt;I would like to have a list of all the hosts (over some period of time, presumably) and the sources that they've generated logs entries with.  A simple table format would work, so there'd be 10 lines for host X, each with a different source listed, if host X generated logs for 10 sources.&lt;/P&gt;

&lt;P&gt;More simply:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host1,source1
host1,source2
host2,source1
host2,source3
host2,source4
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is there a way I can get this information? I see how to pull hosts using metadata, and I see how to pull sources using metadata, but I don't see how the two can be related.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2012 23:13:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-table-containing-hosts-sources-metadata/m-p/60844#M14967</guid>
      <dc:creator>gowen</dc:creator>
      <dc:date>2012-01-30T23:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: Create table containing hosts,sources metadata?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-table-containing-hosts-sources-metadata/m-p/60845#M14968</link>
      <description>&lt;P&gt;You can use the following search to accomplish this (slightly different output than you've specified):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;* | chart values(source) by host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or, if you want to include the all (including internal) indexes:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* | chart values(source) by host
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 31 Jan 2012 00:50:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-table-containing-hosts-sources-metadata/m-p/60845#M14968</guid>
      <dc:creator>sbrant_tt</dc:creator>
      <dc:date>2012-01-31T00:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: Create table containing hosts,sources metadata?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-table-containing-hosts-sources-metadata/m-p/60846#M14969</link>
      <description>&lt;P&gt;You will have to actually count them up:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* | stats count by host, source
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;should do it.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2012 01:25:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-table-containing-hosts-sources-metadata/m-p/60846#M14969</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-01-31T01:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Create table containing hosts,sources metadata?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-table-containing-hosts-sources-metadata/m-p/60847#M14970</link>
      <description>&lt;P&gt;Excellent, gives me just what I was looking for.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2012 13:46:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-table-containing-hosts-sources-metadata/m-p/60847#M14970</guid>
      <dc:creator>gowen</dc:creator>
      <dc:date>2012-01-31T13:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: Create table containing hosts,sources metadata?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-table-containing-hosts-sources-metadata/m-p/60848#M14971</link>
      <description>&lt;P&gt;Very good, thank you - even though the output format wasn't what I was thinking of, it's still useful and it helps me think in terms of how chart can help me.  Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2012 13:47:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-table-containing-hosts-sources-metadata/m-p/60848#M14971</guid>
      <dc:creator>gowen</dc:creator>
      <dc:date>2012-01-31T13:47:01Z</dc:date>
    </item>
  </channel>
</rss>

