<?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: Splunk Hosts metadata correlation with index in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Hosts-metadata-correlation-with-index/m-p/129859#M35327</link>
    <description>&lt;P&gt;&lt;CODE&gt;metasearch&lt;/CODE&gt; does output the index.&lt;/P&gt;</description>
    <pubDate>Sat, 05 Jul 2014 13:20:37 GMT</pubDate>
    <dc:creator>martin_mueller</dc:creator>
    <dc:date>2014-07-05T13:20:37Z</dc:date>
    <item>
      <title>Splunk Hosts metadata correlation with index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Hosts-metadata-correlation-with-index/m-p/129848#M35316</link>
      <description>&lt;P&gt;Im using a metadata type=hosts query to output hosts that have not logged data using recenttime&lt;BR /&gt;
However i dont see the index name being output by this..is there anyway to correlate the host to its index in a query that starts with |metadata type=hosts ?&lt;BR /&gt;
thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2014 08:45:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Hosts-metadata-correlation-with-index/m-p/129848#M35316</guid>
      <dc:creator>Mag2sub</dc:creator>
      <dc:date>2014-07-03T08:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Hosts metadata correlation with index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Hosts-metadata-correlation-with-index/m-p/129849#M35317</link>
      <description>&lt;P&gt;You could use this to emulate &lt;CODE&gt;metadata&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats latest(_time) latest(_indextime) count where index=* by host index
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Jul 2014 09:09:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Hosts-metadata-correlation-with-index/m-p/129849#M35317</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-07-03T09:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Hosts metadata correlation with index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Hosts-metadata-correlation-with-index/m-p/129850#M35318</link>
      <description>&lt;P&gt;Hmmm...this throws error expecting a namespace ...tsidxstats error...missing "FROM" keyword to specify namespace&lt;BR /&gt;
does this work against indexes ? above error suggests it runs only against tsidxstats of tscollect&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2014 09:36:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Hosts-metadata-correlation-with-index/m-p/129850#M35318</guid>
      <dc:creator>Mag2sub</dc:creator>
      <dc:date>2014-07-03T09:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Hosts metadata correlation with index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Hosts-metadata-correlation-with-index/m-p/129851#M35319</link>
      <description>&lt;P&gt;This runs against indexes... on Splunk 6. Are you still on version 5?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2014 09:49:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Hosts-metadata-correlation-with-index/m-p/129851#M35319</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-07-03T09:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Hosts metadata correlation with index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Hosts-metadata-correlation-with-index/m-p/129852#M35320</link>
      <description>&lt;P&gt;yes on splunk 5.0.4 unfortunately...is there some way we can do the same ? i just need to find the latest time each host has logged using metadata but also output what index it belongs to ...&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2014 11:15:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Hosts-metadata-correlation-with-index/m-p/129852#M35320</guid>
      <dc:creator>Mag2sub</dc:creator>
      <dc:date>2014-07-03T11:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Hosts metadata correlation with index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Hosts-metadata-correlation-with-index/m-p/129853#M35321</link>
      <description>&lt;P&gt;This works with Splunk 5 but is on slower side&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|eventcount summarize=false index=* | table index | map maxsearches=100 search="|metadata type=hosts  index=$index$ | eval index=\"$index$\""
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Jul 2014 13:41:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Hosts-metadata-correlation-with-index/m-p/129853#M35321</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-07-03T13:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Hosts metadata correlation with index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Hosts-metadata-correlation-with-index/m-p/129854#M35322</link>
      <description>&lt;P&gt;Its so much on slower side does not look feasible for us...any inputs /modifications to enhance performance appreciated&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2014 13:58:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Hosts-metadata-correlation-with-index/m-p/129854#M35322</guid>
      <dc:creator>Mag2sub</dc:creator>
      <dc:date>2014-07-03T13:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Hosts metadata correlation with index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Hosts-metadata-correlation-with-index/m-p/129855#M35323</link>
      <description>&lt;P&gt;Anything &lt;CODE&gt;tstats&lt;/CODE&gt; can do with indexes can be done with stats:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* | stats latest(_time) latest(_indextime) count by host index
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However, that may be slow, very slow, or glacial. You can of course speed things up by running this query regularly over a short timerange and storing the data in a lookup: &lt;A href="http://blogs.splunk.com/2011/01/11/maintaining-state-of-the-union/"&gt;http://blogs.splunk.com/2011/01/11/maintaining-state-of-the-union/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2014 16:22:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Hosts-metadata-correlation-with-index/m-p/129855#M35323</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-07-03T16:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Hosts metadata correlation with index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Hosts-metadata-correlation-with-index/m-p/129856#M35324</link>
      <description>&lt;P&gt;I've filed an ER for &lt;CODE&gt;metasearch&lt;/CODE&gt; to output &lt;CODE&gt;_indextime&lt;/CODE&gt; in results. With that, you could quickly grab these stats.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2014 17:12:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Hosts-metadata-correlation-with-index/m-p/129856#M35324</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2014-07-03T17:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Hosts metadata correlation with index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Hosts-metadata-correlation-with-index/m-p/129857#M35325</link>
      <description>&lt;P&gt;Yeah, &lt;CODE&gt;metasearch&lt;/CODE&gt; with &lt;CODE&gt;_indextime&lt;/CODE&gt; should be about twice as fast as regular &lt;CODE&gt;stats&lt;/CODE&gt;... if your forwarders basically send current data then you could get along with using &lt;CODE&gt;_time&lt;/CODE&gt; as a workaround.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2014 18:20:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Hosts-metadata-correlation-with-index/m-p/129857#M35325</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-07-03T18:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Hosts metadata correlation with index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Hosts-metadata-correlation-with-index/m-p/129858#M35326</link>
      <description>&lt;P&gt;Thanks ... unless i misundertood something recenttime is indextine for metaseach on hosts ...but metasearch do not output the index names on which they run...i need to be able to read the results to act on it and it needs to have the index name...&lt;/P&gt;</description>
      <pubDate>Sat, 05 Jul 2014 11:49:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Hosts-metadata-correlation-with-index/m-p/129858#M35326</guid>
      <dc:creator>Mag2sub</dc:creator>
      <dc:date>2014-07-05T11:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Hosts metadata correlation with index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Hosts-metadata-correlation-with-index/m-p/129859#M35327</link>
      <description>&lt;P&gt;&lt;CODE&gt;metasearch&lt;/CODE&gt; does output the index.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Jul 2014 13:20:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Hosts-metadata-correlation-with-index/m-p/129859#M35327</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-07-05T13:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Hosts metadata correlation with index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Hosts-metadata-correlation-with-index/m-p/129860#M35328</link>
      <description>&lt;P&gt;unless i misunderstand when i run metadata type=hosts...index name is not a key value pair  returned&lt;/P&gt;

&lt;P&gt;is a metadata search not a metasearch ..sorry if i got that wrong&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jul 2014 05:16:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Hosts-metadata-correlation-with-index/m-p/129860#M35328</guid>
      <dc:creator>Mag2sub</dc:creator>
      <dc:date>2014-07-07T05:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Hosts metadata correlation with index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Hosts-metadata-correlation-with-index/m-p/129861#M35329</link>
      <description>&lt;P&gt;&lt;CODE&gt;metasearch&lt;/CODE&gt; is a different command from &lt;CODE&gt;metadata&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.4/SearchReference/metasearch"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.4/SearchReference/metasearch&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jul 2014 07:54:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Hosts-metadata-correlation-with-index/m-p/129861#M35329</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-07-07T07:54:10Z</dc:date>
    </item>
  </channel>
</rss>

