<?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: limiting the scope of index=* in a metadata search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/limiting-the-scope-of-index-in-a-metadata-search/m-p/45293#M10728</link>
    <description>&lt;P&gt;is there another regex that you can use?&lt;/P&gt;&lt;BR /&gt;
    index="hosts*"&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Jul 2011 16:21:54 GMT</pubDate>
    <dc:creator>fk319</dc:creator>
    <dc:date>2011-07-20T16:21:54Z</dc:date>
    <item>
      <title>limiting the scope of index=* in a metadata search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/limiting-the-scope-of-index-in-a-metadata-search/m-p/45292#M10727</link>
      <description>&lt;P&gt;I am using this search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metadata index=* type=hosts | eval age = now()-lastTime | where age &amp;gt; (2*86400) | sort age d | convert ctime(lastTime) | fields age,host,lastTime
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;which works great in showing me systems that have not forwarded anything in two days. However, one of my co-workers is playing around with a temp_index into which he is importing data from another splunk instance from which he exported some old logs. This index has hosts in it which are no longer forwarders, and I thought that perhaps I could add after &lt;CODE&gt;index=* NOT index=temp_index&lt;/CODE&gt; -- but, alas, this does not work. I could, I suppose list all of the indexes I want but then I'd have to change the saved search every time I add a new index, which I will be doing over the next few months. Seems like there should be a way to do this. Anyone know how?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:44:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/limiting-the-scope-of-index-in-a-metadata-search/m-p/45292#M10727</guid>
      <dc:creator>wrangler2x</dc:creator>
      <dc:date>2020-09-28T09:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: limiting the scope of index=* in a metadata search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/limiting-the-scope-of-index-in-a-metadata-search/m-p/45293#M10728</link>
      <description>&lt;P&gt;is there another regex that you can use?&lt;/P&gt;&lt;BR /&gt;
    index="hosts*"&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2011 16:21:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/limiting-the-scope-of-index-in-a-metadata-search/m-p/45293#M10728</guid>
      <dc:creator>fk319</dc:creator>
      <dc:date>2011-07-20T16:21:54Z</dc:date>
    </item>
  </channel>
</rss>

