<?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 do I created a scheduled report using the collect command without populating it with partial data in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/How-do-I-created-a-scheduled-report-using-the-collect-command/m-p/340034#M2911</link>
    <description>&lt;P&gt;Thank you! I didn't know about this alternative editor for Reports (Saved Searches).&lt;/P&gt;

&lt;P&gt;So if I add the &lt;CODE&gt;| collect ...&lt;/CODE&gt; command to the end of my search, do I &lt;EM&gt;also&lt;/EM&gt; need to enable Summary Indexing at the bottom of the form? Or is it one or the other (i.e. they both do the same thing)?&lt;/P&gt;

&lt;P&gt;screenshot of form: &lt;A href="https://drive.google.com/file/d/0B79DKuM-KaKKS3ZKRlRTZDdfemc/view?usp=sharing"&gt;https://drive.google.com/file/d/0B79DKuM-KaKKS3ZKRlRTZDdfemc/view?usp=sharing&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 05 Mar 2017 22:12:51 GMT</pubDate>
    <dc:creator>michaeltokar</dc:creator>
    <dc:date>2017-03-05T22:12:51Z</dc:date>
    <item>
      <title>How do I created a scheduled report using the collect command without populating it with partial data</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-do-I-created-a-scheduled-report-using-the-collect-command/m-p/340032#M2909</link>
      <description>&lt;P&gt;I'm just starting to get into summary indexes and changing over some reports that were previously long-running to use a summary index to speed them up. I'm aware that I need to have two parts to producing and consuming the summary data:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;A search that runs regularly on fixed intervals (in my case, a 24 hour period) that populates the summary index;&lt;/LI&gt;
&lt;LI&gt;A search that runs as often as I want that consumes the produced summary data.&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;I have devised the search that I want to use to &lt;EM&gt;populate&lt;/EM&gt; my summary index. I've tested this with the &lt;CODE&gt;collect&lt;/CODE&gt; command to make sure the data comes in correctly, using different &lt;EM&gt;marker&lt;/EM&gt; values for test data. Now I want to schedule this search to run every day, to populate data from the previous 24 hour day.&lt;/P&gt;

&lt;P&gt;But the way Splunk Reports work, I can't seem to &lt;EM&gt;define&lt;/EM&gt; the Report without &lt;EM&gt;executing&lt;/EM&gt; the report - the &lt;EM&gt;Save&lt;/EM&gt; button is not available until you've executed the search (or if you have an existing Report, it isn't available until you change the definition of the original report and then execute it). And from basic testing, it looks like the &lt;CODE&gt;collect&lt;/CODE&gt; command will partially populate results even if you terminate the job half-way through.&lt;/P&gt;

&lt;P&gt;So what is the way to solve this? Ideally, something like the Dashboard's source editor for Reports would be available, where I can alter the Report's commands without actually executing them.&lt;/P&gt;

&lt;P&gt;For reference, my search command to populate the summary index looks something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"prd-safe" env="prd-safe" dbCapable query eventtype="unicorn_jira" 
| ... | stats latest(_time) AS _time, latest(mMode) AS mMode, count AS totalRequests, sum(totalSearches) AS totalSearches, sum(numCapable) AS totalCapable, sum(numEquivTrue) AS totalEquivTrue, median(totalDbDelta) AS p50Delta, perc99(totalDbDelta) AS p99Delta, max(totalDbDelta) AS p100Delta by hostname 
| ... | collect index=summary_team marker="report=jvs_migration_daily"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And ideally the Report would be scheduled to run Daily at 10am, for the period of the previous day i.e. &lt;CODE&gt;-1d@d&lt;/CODE&gt; to &lt;CODE&gt;-0d@d&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Mar 2017 22:08:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-do-I-created-a-scheduled-report-using-the-collect-command/m-p/340032#M2909</guid>
      <dc:creator>michaeltokar</dc:creator>
      <dc:date>2017-03-04T22:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: How do I created a scheduled report using the collect command without populating it with partial data</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-do-I-created-a-scheduled-report-using-the-collect-command/m-p/340033#M2910</link>
      <description>&lt;P&gt;While saving the search as Scheduled Search take out the collect piece i.e. &lt;CODE&gt;| collect index=summary_team marker="report=jvs_migration_daily"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Then, to edit the Saved Search without running it, you can open the same from Settings --&amp;gt; Searches, reports, and alerts (this would be similar to editing dashboard source code as you need). In the edit mode add the collect command in the end.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;A href="http://&amp;lt;Your_Splunk_URL&amp;gt;/manager/launcher/saved/searches" target="test_blank"&gt;http://&amp;lt;Your_Splunk_URL&amp;gt;/manager/launcher/saved/searches&lt;/A&gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;&lt;STRONG&gt;[Update as per new question]&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;No you need not enable summary indexing for that scheduled Search, collect command itself is doing this for you. If you do not want to use collect and want Splunk to take care of Summaries, then you choose the other Summary Indexing option. &lt;/P&gt;

&lt;P&gt;Collect will give more control to your summary in terms of defining your own index (Summaries enabled through acceleration go to index="summary") and also dummy sourcetype field like &lt;CODE&gt;orig_sourcetype=&amp;lt;My_Original_Sourcetype&amp;gt;&lt;/CODE&gt; etc (Sourcetype for summarized events is by default always &lt;STRONG&gt;stash&lt;/STRONG&gt;).&lt;/P&gt;

&lt;P&gt;In the search and alerts menu, you just need to define Schedule for your Scheduled Report.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Mar 2017 09:06:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-do-I-created-a-scheduled-report-using-the-collect-command/m-p/340033#M2910</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-03-05T09:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: How do I created a scheduled report using the collect command without populating it with partial data</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-do-I-created-a-scheduled-report-using-the-collect-command/m-p/340034#M2911</link>
      <description>&lt;P&gt;Thank you! I didn't know about this alternative editor for Reports (Saved Searches).&lt;/P&gt;

&lt;P&gt;So if I add the &lt;CODE&gt;| collect ...&lt;/CODE&gt; command to the end of my search, do I &lt;EM&gt;also&lt;/EM&gt; need to enable Summary Indexing at the bottom of the form? Or is it one or the other (i.e. they both do the same thing)?&lt;/P&gt;

&lt;P&gt;screenshot of form: &lt;A href="https://drive.google.com/file/d/0B79DKuM-KaKKS3ZKRlRTZDdfemc/view?usp=sharing"&gt;https://drive.google.com/file/d/0B79DKuM-KaKKS3ZKRlRTZDdfemc/view?usp=sharing&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Mar 2017 22:12:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-do-I-created-a-scheduled-report-using-the-collect-command/m-p/340034#M2911</guid>
      <dc:creator>michaeltokar</dc:creator>
      <dc:date>2017-03-05T22:12:51Z</dc:date>
    </item>
  </channel>
</rss>

