<?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 Compare Minute by Minute Timechart &amp;quot;Today&amp;quot; vs Summary Index Timechart Average in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Compare-Minute-by-Minute-Timechart-quot-Today-quot-vs-Summary/m-p/369692#M108922</link>
    <description>&lt;P&gt;I currently have a timechart running every minute each day to show a given field value as it increases through the day.  The data is being displayed as an area chart.  If possible, I'd like the add an overlay to the chart that will show the "average" value each minute over a larger time period (yesterday, or last week for instance).  I already have the "historical" timechart data being saved to a summary index, I'm just wondering what the best way would be to incorporate it.&lt;/P&gt;

&lt;P&gt;Right now, the search is relatively simple:&lt;BR /&gt;
"my search text" earliest=@d+6h latest=@d+18h source="mylog.log" | timechart span=1m count&lt;/P&gt;

&lt;P&gt;And I am running this same search, without the earliest and latest filters and writing the results to summary index.  So it is just a matter of taking today's count by minute and comparing to the summary index count by minute so get a baseline of today vs prior days to make it easier to see if it is "normal" or not.&lt;/P&gt;</description>
    <pubDate>Tue, 15 Aug 2017 12:08:16 GMT</pubDate>
    <dc:creator>bcarr12</dc:creator>
    <dc:date>2017-08-15T12:08:16Z</dc:date>
    <item>
      <title>Compare Minute by Minute Timechart "Today" vs Summary Index Timechart Average</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-Minute-by-Minute-Timechart-quot-Today-quot-vs-Summary/m-p/369692#M108922</link>
      <description>&lt;P&gt;I currently have a timechart running every minute each day to show a given field value as it increases through the day.  The data is being displayed as an area chart.  If possible, I'd like the add an overlay to the chart that will show the "average" value each minute over a larger time period (yesterday, or last week for instance).  I already have the "historical" timechart data being saved to a summary index, I'm just wondering what the best way would be to incorporate it.&lt;/P&gt;

&lt;P&gt;Right now, the search is relatively simple:&lt;BR /&gt;
"my search text" earliest=@d+6h latest=@d+18h source="mylog.log" | timechart span=1m count&lt;/P&gt;

&lt;P&gt;And I am running this same search, without the earliest and latest filters and writing the results to summary index.  So it is just a matter of taking today's count by minute and comparing to the summary index count by minute so get a baseline of today vs prior days to make it easier to see if it is "normal" or not.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2017 12:08:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-Minute-by-Minute-Timechart-quot-Today-quot-vs-Summary/m-p/369692#M108922</guid>
      <dc:creator>bcarr12</dc:creator>
      <dc:date>2017-08-15T12:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Minute by Minute Timechart "Today" vs Summary Index Timechart Average</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-Minute-by-Minute-Timechart-quot-Today-quot-vs-Summary/m-p/369693#M108923</link>
      <description>&lt;P&gt;I'd probably approach this like so...&lt;/P&gt;

&lt;P&gt;Once a day, between 12p and 6a, run an extract from the summary index to a csv, with each projected minute &lt;STRONG&gt;of the new day&lt;/STRONG&gt; calculated.  I would probably do three numbers - bottom edge, average, top edge - and decide the edges based on 2-3 standard deviations.  For simplicity of the actual presentation, I would put each number on its own individual event record with three fields, _time, series and eventcount.  Since there are only 720 minutes in your 12 hour period, this would only be 2160 records, so it's fairly small.&lt;/P&gt;

&lt;P&gt;Then your presentation is this...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"my search text" earliest=@d+6h latest=@d+18h source="mylog.log" 
| bin _time span=1m
| stats count as eventcount by _time
| eval series="today" 
| append [|inputcsv mydailycsv.csv |  table _time series eventcount]
| timechart span=1m sum(eventcount) as count by series
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 Aug 2017 13:39:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-Minute-by-Minute-Timechart-quot-Today-quot-vs-Summary/m-p/369693#M108923</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-08-15T13:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Minute by Minute Timechart "Today" vs Summary Index Timechart Average</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-Minute-by-Minute-Timechart-quot-Today-quot-vs-Summary/m-p/369694#M108924</link>
      <description>&lt;P&gt;Thank you for your advice!  Let me give this a shot and see how close it gets me to what I am looking for.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2017 17:27:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-Minute-by-Minute-Timechart-quot-Today-quot-vs-Summary/m-p/369694#M108924</guid>
      <dc:creator>bcarr12</dc:creator>
      <dc:date>2017-08-16T17:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Minute by Minute Timechart "Today" vs Summary Index Timechart Average</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-Minute-by-Minute-Timechart-quot-Today-quot-vs-Summary/m-p/369695#M108925</link>
      <description>&lt;P&gt;may be you can try with timewrap command&lt;/P&gt;

&lt;P&gt;for e.g.,&lt;/P&gt;

&lt;P&gt;... ... | timechart count span=1d | timewrap 1week&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2017 17:59:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-Minute-by-Minute-Timechart-quot-Today-quot-vs-Summary/m-p/369695#M108925</guid>
      <dc:creator>sbbadri</dc:creator>
      <dc:date>2017-08-16T17:59:47Z</dc:date>
    </item>
  </channel>
</rss>

