<?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: How to create summary index to track count of records per index, per sourcetype, per day? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-summary-index-to-track-count-of-records-per-index/m-p/288690#M87412</link>
    <description>&lt;P&gt;Awesome, thank you,&lt;/P&gt;</description>
    <pubDate>Fri, 12 May 2017 13:49:05 GMT</pubDate>
    <dc:creator>bworrellZP</dc:creator>
    <dc:date>2017-05-12T13:49:05Z</dc:date>
    <item>
      <title>How to create summary index to track count of records per index, per sourcetype, per day?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-summary-index-to-track-count-of-records-per-index/m-p/288683#M87405</link>
      <description>&lt;P&gt;Our auditors asked a question, that caused the need to know how many records we log, per device, per sourcetype, per day.&lt;/P&gt;

&lt;P&gt;To run the search each day would be killer on the search heads and indexers, based on our volume.  So it was suggested that we create and populate a summary index, and then run searches, and perhaps a dashboard, from there.&lt;/P&gt;

&lt;P&gt;This search gives me the output I need.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=*  | eval date=strftime(_time,"%Y-%m-%d") | stats count by host index  sourcetype date  | table host, index, sourcetype, date, count |sort index, sourcetype
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How would I convert this to a summary index, where I could get something like this as an output. Allowing me to search by server, sourcetype, index, or date.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host         index         sourcetype                date       count
Server001   app1_iis        iis                     5/8/2017    13671
Server001   app2_iis        iis                     5/8/2017    448838
Server001   app3_iis        iis                     5/8/2017    24
Server001   app4_iis        iis                     5/8/2017    35890
Server001   windows      WinRegistry                5/8/2017    2314924
Server001   wineventlog  WinEventLog:Security       5/8/2017    75489
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Using Splunk Enterprise 6.5.1&lt;/P&gt;

&lt;P&gt;Thank you in advance&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 18:29:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-summary-index-to-track-count-of-records-per-index/m-p/288683#M87405</guid>
      <dc:creator>bworrellZP</dc:creator>
      <dc:date>2017-05-11T18:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to create summary index to track count of records per index, per sourcetype, per day?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-summary-index-to-track-count-of-records-per-index/m-p/288684#M87406</link>
      <description>&lt;P&gt;Are you really sure it would kill your environment  if you use &lt;CODE&gt;tstats&lt;/CODE&gt;? This is the thing it rocks at.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| tstats count by host index sourcetype _time span=1d | eval date=strftime(_time,"%Y-%m-%d") | table host, index, sourcetype, date, count |sort index, sourcetype&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 18:45:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-summary-index-to-track-count-of-records-per-index/m-p/288684#M87406</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2017-05-11T18:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to create summary index to track count of records per index, per sourcetype, per day?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-summary-index-to-track-count-of-records-per-index/m-p/288685#M87407</link>
      <description>&lt;P&gt;I can try tstats.  If I was asked to compare daily volumes, monthly, and year over year, would this still be the best way, versus some type of summary?  We are averaging 7 billion events a week, at 70 gig daily average.&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 18:57:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-summary-index-to-track-count-of-records-per-index/m-p/288685#M87407</guid>
      <dc:creator>bworrellZP</dc:creator>
      <dc:date>2017-05-11T18:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to create summary index to track count of records per index, per sourcetype, per day?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-summary-index-to-track-count-of-records-per-index/m-p/288686#M87408</link>
      <description>&lt;P&gt;Or better use tstat's query above in the summary index search. You can just save this search, schedule it to run daily (setup a cron for flexible schedule) and select summary indexing as action (there will be a checkbox at the bottom when you view it from Settings-&amp;gt;Searches., reports and alerts).&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 18:58:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-summary-index-to-track-count-of-records-per-index/m-p/288686#M87408</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-05-11T18:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to create summary index to track count of records per index, per sourcetype, per day?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-summary-index-to-track-count-of-records-per-index/m-p/288687#M87409</link>
      <description>&lt;P&gt;Before the process, you can get rid of sort part since you could sort it in summary index data.&lt;BR /&gt;
1) save this search as report&lt;BR /&gt;
2) go to settings&amp;gt; Searchs, reports and alerts and find the one you have just saved and open configuration for that search&lt;BR /&gt;
3) in the list:&lt;BR /&gt;
a) set search, earliest, latest and check the box, "Schedule this search". Note that, if your time window for the search depends on how much data you want to summarize, such that, if you are looking for daily summaries, do 1 hour window, if it is monthly, do 1 day window and schedule your search daily etc..&lt;BR /&gt;
b) Go to bottom of the configuration , and check, "Enable" for summary indexing. As a standart, summary indexes has naming summary_. Feel free to create your new index. You could also add fields if you have other searches that will feed the same summary index. You can group it by using this field you have added(such that: reportedSearch = Server01_applogs etc..)&lt;BR /&gt;
c) click save&lt;/P&gt;

&lt;P&gt;when your search runs at scheduled time for the first time, first data-set will be moved to your summary index. Please also note that, if you want to load initially big time window then smaller windows, get your first search to look for month or for all data. However, time window needs to be updated as soon as first schedule finishes. otherwise you would have duplicate events in your summary index.&lt;BR /&gt;
hope this helps, documentation is here:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.6.0/Knowledge/Usesummaryindexing" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.6.0/Knowledge/Usesummaryindexing&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:02:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-summary-index-to-track-count-of-records-per-index/m-p/288687#M87409</guid>
      <dc:creator>akocak</dc:creator>
      <dc:date>2020-09-29T14:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to create summary index to track count of records per index, per sourcetype, per day?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-summary-index-to-track-count-of-records-per-index/m-p/288688#M87410</link>
      <description>&lt;P&gt;Ugh, could not reply in Edge, had to jump to another browser.   &lt;/P&gt;

&lt;P&gt;With the Tstats, I get indexes like _audit, that I do not want.  Any way to exclude those in a tstats?  (using index!=_audit did not work)&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:02:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-summary-index-to-track-count-of-records-per-index/m-p/288688#M87410</guid>
      <dc:creator>bworrellZP</dc:creator>
      <dc:date>2020-09-29T14:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to create summary index to track count of records per index, per sourcetype, per day?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-summary-index-to-track-count-of-records-per-index/m-p/288689#M87411</link>
      <description>&lt;P&gt;Use like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats count WHERE index=* by host index sourcetype _time span=1d 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 12 May 2017 12:13:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-summary-index-to-track-count-of-records-per-index/m-p/288689#M87411</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-05-12T12:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to create summary index to track count of records per index, per sourcetype, per day?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-summary-index-to-track-count-of-records-per-index/m-p/288690#M87412</link>
      <description>&lt;P&gt;Awesome, thank you,&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 13:49:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-summary-index-to-track-count-of-records-per-index/m-p/288690#M87412</guid>
      <dc:creator>bworrellZP</dc:creator>
      <dc:date>2017-05-12T13:49:05Z</dc:date>
    </item>
  </channel>
</rss>

