<?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: Is it possible to merge results from last scheduled saved search with the latest run? in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/Is-it-possible-to-merge-results-from-last-scheduled-saved-search/m-p/151752#M3370</link>
    <description>&lt;P&gt;30 &amp;lt;4&lt;STAR&gt;'s&amp;gt; is what I actually have. The comment just truncates the last 2 &lt;STAR&gt;'s&lt;/STAR&gt;&lt;/STAR&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Jul 2014 18:38:39 GMT</pubDate>
    <dc:creator>steven10172</dc:creator>
    <dc:date>2014-07-23T18:38:39Z</dc:date>
    <item>
      <title>Is it possible to merge results from last scheduled saved search with the latest run?</title>
      <link>https://community.splunk.com/t5/Reporting/Is-it-possible-to-merge-results-from-last-scheduled-saved-search/m-p/151741#M3359</link>
      <description>&lt;P&gt;Is it possible to merge the results from the last run of the saved search with the newest run? I would like to be able to keep a report of the running average of some different values.&lt;/P&gt;

&lt;P&gt;Results after 1st search:&lt;BR /&gt;
Monday    10000&lt;BR /&gt;
Tuesday   43000&lt;BR /&gt;
Wednesday 15000&lt;/P&gt;

&lt;P&gt;Results of next search:&lt;BR /&gt;
Monday    12000&lt;BR /&gt;
Tuesday   51000&lt;BR /&gt;
Wednesday 19000&lt;/P&gt;

&lt;P&gt;Report shows:&lt;BR /&gt;
Monday    11000&lt;BR /&gt;
Tuesday   47000&lt;BR /&gt;
Wednesday 17000&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jul 2014 21:48:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Is-it-possible-to-merge-results-from-last-scheduled-saved-search/m-p/151741#M3359</guid>
      <dc:creator>steven10172</dc:creator>
      <dc:date>2014-07-21T21:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to merge results from last scheduled saved search with the latest run?</title>
      <link>https://community.splunk.com/t5/Reporting/Is-it-possible-to-merge-results-from-last-scheduled-saved-search/m-p/151742#M3360</link>
      <description>&lt;P&gt;I assume that your scheduled saved search is run once a day.&lt;BR /&gt;&lt;BR /&gt;
Create a Summary index and index the summarized data at the end of every run. Using this summary index you can generate reports for any time range (Weekly, biweekly, monthly and etc..)&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2014 05:56:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Is-it-possible-to-merge-results-from-last-scheduled-saved-search/m-p/151742#M3360</guid>
      <dc:creator>strive</dc:creator>
      <dc:date>2014-07-22T05:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to merge results from last scheduled saved search with the latest run?</title>
      <link>https://community.splunk.com/t5/Reporting/Is-it-possible-to-merge-results-from-last-scheduled-saved-search/m-p/151743#M3361</link>
      <description>&lt;P&gt;You can achieve this by using loadjob command. It would require the saved search configuration in two steps.&lt;/P&gt;

&lt;P&gt;A) Have your saved search created with the regular command and schedule and let it run for atleast once per schedule (so that you'd have previous run result)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal | stats count by sourcetype  
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Runs every minute&lt;/P&gt;

&lt;P&gt;B) Once its ran once, add following to the search string to append the result of last run and then summarize again.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal | stats count by sourcetype  ***new stuff starts here(delete this)***| append [| loadjob savedsearch="PutownerName:PutAppName:PutSavedSearchName" ] | stats count by sourcetype 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now the next run will include the results from last run as well.&lt;/P&gt;

&lt;P&gt;Remember, it will produce commulative effect.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Like
Run 1     Result 1
Run 2     Result 1+2
Run 3     Result 1,2 + 3
...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 22 Jul 2014 13:54:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Is-it-possible-to-merge-results-from-last-scheduled-saved-search/m-p/151743#M3361</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-07-22T13:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to merge results from last scheduled saved search with the latest run?</title>
      <link>https://community.splunk.com/t5/Reporting/Is-it-possible-to-merge-results-from-last-scheduled-saved-search/m-p/151744#M3362</link>
      <description>&lt;P&gt;I've scheduled an alert to be summary indexed with my search and it doesn't seem to be running. When I click &lt;CODE&gt;View Recent&lt;/CODE&gt; there are no reports stored there. But if I click &lt;CODE&gt;Run&lt;/CODE&gt; I can see results. There also doesn't seem to be results in index=summary (The index I used).   How can I tell what's going on with the search?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2014 15:35:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Is-it-possible-to-merge-results-from-last-scheduled-saved-search/m-p/151744#M3362</guid>
      <dc:creator>steven10172</dc:creator>
      <dc:date>2014-07-23T15:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to merge results from last scheduled saved search with the latest run?</title>
      <link>https://community.splunk.com/t5/Reporting/Is-it-possible-to-merge-results-from-last-scheduled-saved-search/m-p/151745#M3363</link>
      <description>&lt;P&gt;Can you post your search here. That will help us to see if you have scheduled it properly and also your storage preferences.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2014 15:44:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Is-it-possible-to-merge-results-from-last-scheduled-saved-search/m-p/151745#M3363</guid>
      <dc:creator>strive</dc:creator>
      <dc:date>2014-07-23T15:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to merge results from last scheduled saved search with the latest run?</title>
      <link>https://community.splunk.com/t5/Reporting/Is-it-possible-to-merge-results-from-last-scheduled-saved-search/m-p/151746#M3364</link>
      <description>&lt;P&gt;| metasearch earliest=@h-1h latest=@h index=voice&lt;BR /&gt;
| fields _time,host&lt;BR /&gt;
| bucket _time span=1h&lt;BR /&gt;
| bucket host&lt;BR /&gt;
| stats count by _time,host&lt;BR /&gt;
| eval month=strftime(_time, "%m")&lt;BR /&gt;
| eval day=strftime(_time, "%d")&lt;BR /&gt;
| eval dayOfWeek=strftime(_time, "%w")&lt;BR /&gt;
| eval hour=strftime(_time, "%H")&lt;BR /&gt;
| table host,month,day,dayOfWeek,hour,count&lt;BR /&gt;
| sort host,hour,day&lt;BR /&gt;
Alert Config:[[[StartTime:@h-1h, FinishTime:@h, Scheduled:cron[30 * * * *], Severity:info Expiration:24hr Summary Indexing: ENABLED, Summary Index: Summary, Add Fields:report=voice_import_count]]]&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:09:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Is-it-possible-to-merge-results-from-last-scheduled-saved-search/m-p/151746#M3364</guid>
      <dc:creator>steven10172</dc:creator>
      <dc:date>2020-09-28T17:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to merge results from last scheduled saved search with the latest run?</title>
      <link>https://community.splunk.com/t5/Reporting/Is-it-possible-to-merge-results-from-last-scheduled-saved-search/m-p/151747#M3365</link>
      <description>&lt;P&gt;If the storage preferences are in a .conf file I do not have access to them&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2014 16:05:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Is-it-possible-to-merge-results-from-last-scheduled-saved-search/m-p/151747#M3365</guid>
      <dc:creator>steven10172</dc:creator>
      <dc:date>2014-07-23T16:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to merge results from last scheduled saved search with the latest run?</title>
      <link>https://community.splunk.com/t5/Reporting/Is-it-possible-to-merge-results-from-last-scheduled-saved-search/m-p/151748#M3366</link>
      <description>&lt;P&gt;When i try to execute the search that you have given, it throws search parser error. Are you sure that it runs and giving you results.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2014 16:24:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Is-it-possible-to-merge-results-from-last-scheduled-saved-search/m-p/151748#M3366</guid>
      <dc:creator>strive</dc:creator>
      <dc:date>2014-07-23T16:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to merge results from last scheduled saved search with the latest run?</title>
      <link>https://community.splunk.com/t5/Reporting/Is-it-possible-to-merge-results-from-last-scheduled-saved-search/m-p/151749#M3367</link>
      <description>&lt;P&gt;Yes the storage preferences are part of indexes.conf file. Users can overrite the default settings by placing a copy of the file under /local directory&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2014 16:31:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Is-it-possible-to-merge-results-from-last-scheduled-saved-search/m-p/151749#M3367</guid>
      <dc:creator>strive</dc:creator>
      <dc:date>2014-07-23T16:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to merge results from last scheduled saved search with the latest run?</title>
      <link>https://community.splunk.com/t5/Reporting/Is-it-possible-to-merge-results-from-last-scheduled-saved-search/m-p/151750#M3368</link>
      <description>&lt;P&gt;Yea, the search does work. the stuff in the [[[ is the configuration I used to setup the alert and summary indexing. I would look at the .conf files, but I don't have access to the servers.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2014 16:38:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Is-it-possible-to-merge-results-from-last-scheduled-saved-search/m-p/151750#M3368</guid>
      <dc:creator>steven10172</dc:creator>
      <dc:date>2014-07-23T16:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to merge results from last scheduled saved search with the latest run?</title>
      <link>https://community.splunk.com/t5/Reporting/Is-it-possible-to-merge-results-from-last-scheduled-saved-search/m-p/151751#M3369</link>
      <description>&lt;P&gt;Yeah i understood by taking a close look at the search. I followed your configurations with minor changes. Its working for me. The changes that i made are:&lt;BR /&gt;
StartTime:-1d # This was default and i left it as-is&lt;BR /&gt;
FinishTime:   # This was blank and i left it as-is&lt;BR /&gt;
cron: 30 * * * *&lt;BR /&gt;
Rest all same settings.&lt;/P&gt;

&lt;P&gt;Your cron schedule is wrong. 30 * * is not right. If you try to save that it will display an error&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2014 17:00:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Is-it-possible-to-merge-results-from-last-scheduled-saved-search/m-p/151751#M3369</guid>
      <dc:creator>strive</dc:creator>
      <dc:date>2014-07-23T17:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to merge results from last scheduled saved search with the latest run?</title>
      <link>https://community.splunk.com/t5/Reporting/Is-it-possible-to-merge-results-from-last-scheduled-saved-search/m-p/151752#M3370</link>
      <description>&lt;P&gt;30 &amp;lt;4&lt;STAR&gt;'s&amp;gt; is what I actually have. The comment just truncates the last 2 &lt;STAR&gt;'s&lt;/STAR&gt;&lt;/STAR&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2014 18:38:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Is-it-possible-to-merge-results-from-last-scheduled-saved-search/m-p/151752#M3370</guid>
      <dc:creator>steven10172</dc:creator>
      <dc:date>2014-07-23T18:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to merge results from last scheduled saved search with the latest run?</title>
      <link>https://community.splunk.com/t5/Reporting/Is-it-possible-to-merge-results-from-last-scheduled-saved-search/m-p/151753#M3371</link>
      <description>&lt;P&gt;Ok. I tried with same configurations and it works perfectly fine.. Data gets stored in summary index also.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2014 18:45:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Is-it-possible-to-merge-results-from-last-scheduled-saved-search/m-p/151753#M3371</guid>
      <dc:creator>strive</dc:creator>
      <dc:date>2014-07-23T18:45:06Z</dc:date>
    </item>
  </channel>
</rss>

