<?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 is the count of indexed events shown under “What to Search” on the default page of the Search &amp; Reporting app much lower than expected? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-is-the-count-of-indexed-events-shown-under-What-to-Search-on/m-p/213381#M62586</link>
    <description>&lt;P&gt;&lt;STRONG&gt;1)First thing to eliminate will  be that caused by the fact that "| metadata" (and therefore, that UI Panel) is scoped by default to the default set of indexes that the user in question is set to search - as per &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.0/SearchReference/Metadata" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.0/SearchReference/Metadata&lt;/A&gt; :&lt;/STRONG&gt; &lt;/P&gt;

&lt;P&gt;As mentioned by the following section in above link &lt;/P&gt;

&lt;P&gt;Optional arguments[edit]&lt;BR /&gt;
index-specifier&lt;BR /&gt;
Syntax: index=&lt;BR /&gt;
Description: Specify the index from which to return results. Wildcards (&lt;EM&gt;) can be used. index=&lt;/EM&gt; matches non-internal indexes. index=_* matches internal indexes.&lt;BR /&gt;
Default: The default index, which is usually main&lt;BR /&gt;
So I'm pretty sure that this is governed by the following role-specific setting in authorize.conf:&lt;/P&gt;

&lt;P&gt;srchIndexesDefault = &lt;BR /&gt;
* Semicolon delimited list of indexes to search when no index is specified&lt;BR /&gt;
* These indexes can be wildcarded, with the exception that '&lt;EM&gt;' does not&lt;BR /&gt;
  match internal indexes&lt;BR /&gt;
* To match internal indexes, start with '&lt;EM&gt;'. All internal indexes are&lt;BR /&gt;
  represented by '&lt;/EM&gt;&lt;/EM&gt;'&lt;BR /&gt;
* Defaults to none, but the UI will automatically populate this with 'main'&lt;BR /&gt;
  in manager&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;2)One very simple way to check this is to check what kind of event count you get with:&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;| metadata type=sourcetypes | stats sum(totalCount) AS total_event_count_of_indexes_searched_by_default&lt;/P&gt;

&lt;P&gt;and&lt;/P&gt;

&lt;P&gt;| metadata type=sourcetypes index=* | stats sum(totalCount) AS total_event_count_of_all_searchable_indexes&lt;/P&gt;

&lt;P&gt;3) In case the search in (2) both return incorrect count, next you can try and rebuild metadata - using the following command &lt;/P&gt;

&lt;P&gt;splunk cmd splunkd recover-metadata /localhome/igor/local/core/var/lib/splunk/defaultdb/db/db_1442694953_1442694953_0&lt;/P&gt;

&lt;P&gt;This command is referred at link --&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.0/Troubleshooting/Buckets" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.0/Troubleshooting/Buckets&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 07:48:53 GMT</pubDate>
    <dc:creator>rbal_splunk</dc:creator>
    <dc:date>2020-09-29T07:48:53Z</dc:date>
    <item>
      <title>Why is the count of indexed events shown under “What to Search” on the default page of the Search &amp; Reporting app much lower than expected?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-the-count-of-indexed-events-shown-under-What-to-Search-on/m-p/213379#M62584</link>
      <description>&lt;P&gt;Upon login to Splunk, when we navigate to default page for the Search &amp;amp; Reporting app, the count under “What to Search” is incorrect. The number showing is 721,000+ when it should in the billions.&lt;/P&gt;

&lt;P&gt;Refer picture to see the issue &lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="all text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/787i67A3CD61168B7DE0/image-size/large?v=v2&amp;amp;px=999" role="button" title="all text" alt="all text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2015 18:34:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-the-count-of-indexed-events-shown-under-What-to-Search-on/m-p/213379#M62584</guid>
      <dc:creator>sat94541</dc:creator>
      <dc:date>2015-11-04T18:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the count of indexed events shown under “What to Search” on the default page of the Search &amp; Reporting app much lower than expected?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-the-count-of-indexed-events-shown-under-What-to-Search-on/m-p/213380#M62585</link>
      <description>&lt;P&gt;Those are just the indexes that are searched by default.&lt;/P&gt;

&lt;P&gt;If you go to:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Settings &amp;gt; User Access &amp;gt; Roles &lt;/LI&gt;
&lt;LI&gt;chose a specific role&lt;/LI&gt;
&lt;LI&gt;Scroll to the bottom&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;You will see:&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/786i2833D9CB54E1D85F/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;The counts you're talking about in the data summary are only reflective of the indexes that are searched by default.&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;Here are a few other ways to get an event count:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eventcount index=*
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or internal indexes:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eventcount index=_*
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or try using the &lt;CODE&gt;metadata&lt;/CODE&gt; command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metadata type=sourcetypes index=*
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;There are many other ways of course.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2015 18:44:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-the-count-of-indexed-events-shown-under-What-to-Search-on/m-p/213380#M62585</guid>
      <dc:creator>aljohnson_splun</dc:creator>
      <dc:date>2015-11-04T18:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the count of indexed events shown under “What to Search” on the default page of the Search &amp; Reporting app much lower than expected?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-the-count-of-indexed-events-shown-under-What-to-Search-on/m-p/213381#M62586</link>
      <description>&lt;P&gt;&lt;STRONG&gt;1)First thing to eliminate will  be that caused by the fact that "| metadata" (and therefore, that UI Panel) is scoped by default to the default set of indexes that the user in question is set to search - as per &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.0/SearchReference/Metadata" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.0/SearchReference/Metadata&lt;/A&gt; :&lt;/STRONG&gt; &lt;/P&gt;

&lt;P&gt;As mentioned by the following section in above link &lt;/P&gt;

&lt;P&gt;Optional arguments[edit]&lt;BR /&gt;
index-specifier&lt;BR /&gt;
Syntax: index=&lt;BR /&gt;
Description: Specify the index from which to return results. Wildcards (&lt;EM&gt;) can be used. index=&lt;/EM&gt; matches non-internal indexes. index=_* matches internal indexes.&lt;BR /&gt;
Default: The default index, which is usually main&lt;BR /&gt;
So I'm pretty sure that this is governed by the following role-specific setting in authorize.conf:&lt;/P&gt;

&lt;P&gt;srchIndexesDefault = &lt;BR /&gt;
* Semicolon delimited list of indexes to search when no index is specified&lt;BR /&gt;
* These indexes can be wildcarded, with the exception that '&lt;EM&gt;' does not&lt;BR /&gt;
  match internal indexes&lt;BR /&gt;
* To match internal indexes, start with '&lt;EM&gt;'. All internal indexes are&lt;BR /&gt;
  represented by '&lt;/EM&gt;&lt;/EM&gt;'&lt;BR /&gt;
* Defaults to none, but the UI will automatically populate this with 'main'&lt;BR /&gt;
  in manager&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;2)One very simple way to check this is to check what kind of event count you get with:&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;| metadata type=sourcetypes | stats sum(totalCount) AS total_event_count_of_indexes_searched_by_default&lt;/P&gt;

&lt;P&gt;and&lt;/P&gt;

&lt;P&gt;| metadata type=sourcetypes index=* | stats sum(totalCount) AS total_event_count_of_all_searchable_indexes&lt;/P&gt;

&lt;P&gt;3) In case the search in (2) both return incorrect count, next you can try and rebuild metadata - using the following command &lt;/P&gt;

&lt;P&gt;splunk cmd splunkd recover-metadata /localhome/igor/local/core/var/lib/splunk/defaultdb/db/db_1442694953_1442694953_0&lt;/P&gt;

&lt;P&gt;This command is referred at link --&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.0/Troubleshooting/Buckets" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.0/Troubleshooting/Buckets&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:48:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-the-count-of-indexed-events-shown-under-What-to-Search-on/m-p/213381#M62586</guid>
      <dc:creator>rbal_splunk</dc:creator>
      <dc:date>2020-09-29T07:48:53Z</dc:date>
    </item>
  </channel>
</rss>

