<?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: Comparing performance data from last week to today, using lookup table?? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Comparing-performance-data-from-last-week-to-today-using-lookup/m-p/223527#M175927</link>
    <description>&lt;P&gt;Try something like this&lt;/P&gt;

&lt;P&gt;Search 1: Runs weekly and updates your lookup table to store weekly (last week I'm assuming) baseline of the average and perc90 of the timing field.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=some_index sourcetype=some_perf method="Oracle*" earliest=-1w@w latest=@w| stats avg(timing) as LastWeekAverage perc90(timing) as LastWeekPercentile90 by method
| outputlookup method_timing_baseline.csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Cron: &lt;CODE&gt;55 00 * * 1&lt;/CODE&gt;  (every monday 00:55AM)&lt;/P&gt;

&lt;P&gt;Now you can run your alert search reference this lookup to compare and alert.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=some_index sourcetype=some_perf method="Oracle*" earliest=-35m@m latest=-5m@m  | stats avg(timing) as Average perc90(timing) as "90th Perc" perc95(timing) as "95th Perc" max(timing) as MAX count by method | lookup method_timing_baseline.csv method OUTPUT LastWeekAverage LastWeekPercentile90 | where Average &amp;gt;1.2*LastWeekAverage OR '90th Perc'&amp;gt;1.2*LastWeekPercentile90 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Cron : &lt;CODE&gt;5,35 * * * *&lt;/CODE&gt; (every 30 mins on 5 and 35 minute of hour)&lt;/P&gt;</description>
    <pubDate>Sun, 08 Jan 2017 18:45:56 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2017-01-08T18:45:56Z</dc:date>
    <item>
      <title>Comparing performance data from last week to today, using lookup table??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Comparing-performance-data-from-last-week-to-today-using-lookup/m-p/223525#M175925</link>
      <description>&lt;P&gt;I have a report that returns&lt;BR /&gt;
method  Avg(timing) perc90(timing)&lt;BR /&gt;
that I would like to create as a baseline each week.&lt;BR /&gt;
index=some_index  sourcetype=some_perf method="Oracle*" | stats avg(timing) as Average perc90(timing) as "90th Perc" perc95(timing) as "95th Perc" max(timing) as MAX count by method &lt;/P&gt;

&lt;P&gt;Then I would like to create an alert that runs say every half hour or hour that whenever the avg or per90 for a particular method deviates from the base by say 20% I would get a alert that we might have a problem in the database.&lt;/P&gt;

&lt;P&gt;I was thinking I would create a report of last weeks results as a lookup table and then do comparisons between each, but I'm not sure how.&lt;/P&gt;

&lt;P&gt;we have several customers that depend on the performance of our application and I'd like to be proactive if there is a sudden slowdown in the database&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:19:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Comparing-performance-data-from-last-week-to-today-using-lookup/m-p/223525#M175925</guid>
      <dc:creator>danoconnl</dc:creator>
      <dc:date>2020-09-29T12:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing performance data from last week to today, using lookup table??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Comparing-performance-data-from-last-week-to-today-using-lookup/m-p/223526#M175926</link>
      <description>&lt;P&gt;Is your search given here supposed to get Average and 90th Percentile for entire week or just last week same hour as current hour today?&lt;/P&gt;</description>
      <pubDate>Sun, 08 Jan 2017 17:34:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Comparing-performance-data-from-last-week-to-today-using-lookup/m-p/223526#M175926</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-01-08T17:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing performance data from last week to today, using lookup table??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Comparing-performance-data-from-last-week-to-today-using-lookup/m-p/223527#M175927</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;

&lt;P&gt;Search 1: Runs weekly and updates your lookup table to store weekly (last week I'm assuming) baseline of the average and perc90 of the timing field.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=some_index sourcetype=some_perf method="Oracle*" earliest=-1w@w latest=@w| stats avg(timing) as LastWeekAverage perc90(timing) as LastWeekPercentile90 by method
| outputlookup method_timing_baseline.csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Cron: &lt;CODE&gt;55 00 * * 1&lt;/CODE&gt;  (every monday 00:55AM)&lt;/P&gt;

&lt;P&gt;Now you can run your alert search reference this lookup to compare and alert.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=some_index sourcetype=some_perf method="Oracle*" earliest=-35m@m latest=-5m@m  | stats avg(timing) as Average perc90(timing) as "90th Perc" perc95(timing) as "95th Perc" max(timing) as MAX count by method | lookup method_timing_baseline.csv method OUTPUT LastWeekAverage LastWeekPercentile90 | where Average &amp;gt;1.2*LastWeekAverage OR '90th Perc'&amp;gt;1.2*LastWeekPercentile90 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Cron : &lt;CODE&gt;5,35 * * * *&lt;/CODE&gt; (every 30 mins on 5 and 35 minute of hour)&lt;/P&gt;</description>
      <pubDate>Sun, 08 Jan 2017 18:45:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Comparing-performance-data-from-last-week-to-today-using-lookup/m-p/223527#M175927</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-01-08T18:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing performance data from last week to today, using lookup table??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Comparing-performance-data-from-last-week-to-today-using-lookup/m-p/223528#M175928</link>
      <description>&lt;P&gt;my plan was to get the average for last week, because performance should be comparable within certain parameters +/- 10-or-20%.  Really I'm looking for an alert when things have gone real bad and we'll start missing our SLAs&lt;/P&gt;</description>
      <pubDate>Sun, 08 Jan 2017 19:45:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Comparing-performance-data-from-last-week-to-today-using-lookup/m-p/223528#M175928</guid>
      <dc:creator>danoconnl</dc:creator>
      <dc:date>2017-01-08T19:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing performance data from last week to today, using lookup table??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Comparing-performance-data-from-last-week-to-today-using-lookup/m-p/223529#M175929</link>
      <description>&lt;P&gt;exactly what I was looking for as a starting point, thanks alot &lt;/P&gt;</description>
      <pubDate>Sun, 08 Jan 2017 19:46:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Comparing-performance-data-from-last-week-to-today-using-lookup/m-p/223529#M175929</guid>
      <dc:creator>danoconnl</dc:creator>
      <dc:date>2017-01-08T19:46:16Z</dc:date>
    </item>
  </channel>
</rss>

