<?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: Source and Host in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Source-and-Host/m-p/84368#M21504</link>
    <description>&lt;P&gt;They are not included together.   You can run separate searches against the metadata to find that out.&lt;/P&gt;

&lt;P&gt;What is your ultimate goal with this data?&lt;/P&gt;</description>
    <pubDate>Fri, 30 Sep 2011 19:17:33 GMT</pubDate>
    <dc:creator>Simeon</dc:creator>
    <dc:date>2011-09-30T19:17:33Z</dc:date>
    <item>
      <title>Source and Host</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Source-and-Host/m-p/84367#M21503</link>
      <description>&lt;P&gt;I am trying to write a query to return host, source, last updated.  However, it appears as though the source and host data are not stored together in the metadata.  I can get a list of sources using the query:  &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;"|metadata type=sources index=iam_eat"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;but cant figure out how to include the hostname.  I tried this query:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;|metadata type=sources index=iam_eat| map search="search index=iam_eat earliest=-1m source=$source$|stats count by host,source" maxsearches=10&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;This query works, but only includes hosts &amp;amp; sources that have been updated in the last minute.  If the source has not been updated, then I would like it to show up in my list with a count of 0.&lt;/P&gt;

&lt;P&gt;Any help will be greatly appreciated!!!!&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2011 17:48:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Source-and-Host/m-p/84367#M21503</guid>
      <dc:creator>tmurray3</dc:creator>
      <dc:date>2011-09-30T17:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: Source and Host</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Source-and-Host/m-p/84368#M21504</link>
      <description>&lt;P&gt;They are not included together.   You can run separate searches against the metadata to find that out.&lt;/P&gt;

&lt;P&gt;What is your ultimate goal with this data?&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2011 19:17:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Source-and-Host/m-p/84368#M21504</guid>
      <dc:creator>Simeon</dc:creator>
      <dc:date>2011-09-30T19:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: Source and Host</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Source-and-Host/m-p/84369#M21505</link>
      <description>&lt;P&gt;My goal is to simple.  I want to display a table with host, source and last time updated.  Basically, everything listed in the "|metadata type=sources" results, plus add a host column&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2011 19:40:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Source-and-Host/m-p/84369#M21505</guid>
      <dc:creator>tmurray3</dc:creator>
      <dc:date>2011-09-30T19:40:24Z</dc:date>
    </item>
  </channel>
</rss>

