<?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: Why shouldn't we search index=* in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-shouldn-t-we-search-index/m-p/332281#M164461</link>
    <description>&lt;P&gt;The more restricted you can make your base search, the more efficient that search will be. So if you know your data is in &lt;CODE&gt;index=windows_logs&lt;/CODE&gt; but instead search &lt;CODE&gt;index=*&lt;/CODE&gt;, you are forcing Splunk to examine a very large number of buckets that won't contain your data. Narrowing your time window and your searched indexes are a really great place to start in crafting an efficient base search.&lt;/P&gt;

&lt;P&gt;More details (and lots more tips!) can be found here:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/SplunkCloud/6.6.3/Search/Writebettersearches"&gt;http://docs.splunk.com/Documentation/SplunkCloud/6.6.3/Search/Writebettersearches&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Dec 2017 22:20:11 GMT</pubDate>
    <dc:creator>elliotproebstel</dc:creator>
    <dc:date>2017-12-08T22:20:11Z</dc:date>
    <item>
      <title>Why shouldn't we search index=*</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-shouldn-t-we-search-index/m-p/332280#M164460</link>
      <description>&lt;P&gt;I'm interested in knowing why it's frowned upon not to search index=*. I was asked by one of our employees and remembered it being mentioned at this .conf.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2017 22:05:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-shouldn-t-we-search-index/m-p/332280#M164460</guid>
      <dc:creator>sogeniusio</dc:creator>
      <dc:date>2017-12-08T22:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: Why shouldn't we search index=*</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-shouldn-t-we-search-index/m-p/332281#M164461</link>
      <description>&lt;P&gt;The more restricted you can make your base search, the more efficient that search will be. So if you know your data is in &lt;CODE&gt;index=windows_logs&lt;/CODE&gt; but instead search &lt;CODE&gt;index=*&lt;/CODE&gt;, you are forcing Splunk to examine a very large number of buckets that won't contain your data. Narrowing your time window and your searched indexes are a really great place to start in crafting an efficient base search.&lt;/P&gt;

&lt;P&gt;More details (and lots more tips!) can be found here:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/SplunkCloud/6.6.3/Search/Writebettersearches"&gt;http://docs.splunk.com/Documentation/SplunkCloud/6.6.3/Search/Writebettersearches&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2017 22:20:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-shouldn-t-we-search-index/m-p/332281#M164461</guid>
      <dc:creator>elliotproebstel</dc:creator>
      <dc:date>2017-12-08T22:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Why shouldn't we search index=*</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-shouldn-t-we-search-index/m-p/332282#M164462</link>
      <description>&lt;P&gt;Which would be a more efficient search for your car keys?&lt;/P&gt;

&lt;P&gt;"somewhere in Texas"&lt;BR /&gt;
OR&lt;BR /&gt;
"somewhere in Dallas"&lt;BR /&gt;
OR&lt;BR /&gt;
"somewhere in my house"&lt;/P&gt;

&lt;P&gt;The more details that you give, the fewer places (buckets of compressed data) need to be searched.  If you know that&lt;BR /&gt;
index="Dallas" AND sourcetype="my house", then say so!&lt;/P&gt;

&lt;P&gt;That being said, as long as you are fully qualifying indexed fields (e.g. host="MyHost"), it is &lt;EM&gt;MUCH&lt;/EM&gt; less of a big deal.  Also, if this is ad-hoc stuff, it is not too bad.  It can really add up, though, if you save and schedule open-ended searches like this.  A running search fully consumes a core on each indexer and the search head.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Dec 2017 04:33:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-shouldn-t-we-search-index/m-p/332282#M164462</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-12-09T04:33:25Z</dc:date>
    </item>
  </channel>
</rss>

