<?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: Calculation of area of a graph in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Calculation-of-area-of-a-graph/m-p/39781#M178826</link>
    <description>&lt;P&gt;Calculating area under a curve normally requires calculus and integration to properly calculate. However, you can try and approximate it. What I would do, since you have each of the values of the area points, you can take the points with values higher than your threshold, subtract the threshold value (to get the value above the line) and sum them over the _time of your graph. A search may go something like this.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;your_search|eval threshold = 10|where perf_value &amp;gt; threshold|eval diff_threshold = perf_value - threshold|stats sum(diff_threshold) as "Total 'Area' Above the Line"&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Nov 2012 11:18:18 GMT</pubDate>
    <dc:creator>alacercogitatus</dc:creator>
    <dc:date>2012-11-20T11:18:18Z</dc:date>
    <item>
      <title>Calculation of area of a graph</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculation-of-area-of-a-graph/m-p/39780#M178825</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;

&lt;P&gt;today I have a special question. I am not sure how to realise this.&lt;BR /&gt;
I have on the one hand a lot of performance values, like 20, 13, 15. On the other hand I have the time stamps for those performance values. It mean, I can create easily a graph. No I am adding a extra line, called recommendation of 10.&lt;/P&gt;

&lt;P&gt;Now we have a graph and a line which is the treshold line. &lt;/P&gt;

&lt;P&gt;The idea is now, to calculate the area which is higher than the recommodation. I already found the mathematic phrase but I think there is maybe another way to realise this. With a mathematic phare it is so complex...&lt;/P&gt;

&lt;P&gt;Could you please advise me how I can realise this? Any kind of ideas are more than welcome.&lt;/P&gt;

&lt;P&gt;Thank you very much in advance&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2012 09:01:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculation-of-area-of-a-graph/m-p/39780#M178825</guid>
      <dc:creator>nebel</dc:creator>
      <dc:date>2012-11-20T09:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation of area of a graph</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculation-of-area-of-a-graph/m-p/39781#M178826</link>
      <description>&lt;P&gt;Calculating area under a curve normally requires calculus and integration to properly calculate. However, you can try and approximate it. What I would do, since you have each of the values of the area points, you can take the points with values higher than your threshold, subtract the threshold value (to get the value above the line) and sum them over the _time of your graph. A search may go something like this.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;your_search|eval threshold = 10|where perf_value &amp;gt; threshold|eval diff_threshold = perf_value - threshold|stats sum(diff_threshold) as "Total 'Area' Above the Line"&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2012 11:18:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculation-of-area-of-a-graph/m-p/39781#M178826</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2012-11-20T11:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation of area of a graph</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculation-of-area-of-a-graph/m-p/39782#M178827</link>
      <description>&lt;P&gt;thank you for that. &lt;BR /&gt;
Do you think it is more exactly with your idea instead of calculate the area? &lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2012 13:33:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculation-of-area-of-a-graph/m-p/39782#M178827</guid>
      <dc:creator>nebel</dc:creator>
      <dc:date>2012-11-20T13:33:35Z</dc:date>
    </item>
  </channel>
</rss>

