<?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: span 5min for the last 15min in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/span-5min-for-the-last-15min/m-p/18276#M2631</link>
    <description>&lt;P&gt;I'm sorry I don't understand this question ... &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 27 Jul 2012 11:18:45 GMT</pubDate>
    <dc:creator>MHibbin</dc:creator>
    <dc:date>2012-07-27T11:18:45Z</dc:date>
    <item>
      <title>span 5min for the last 15min</title>
      <link>https://community.splunk.com/t5/Splunk-Search/span-5min-for-the-last-15min/m-p/18271#M2626</link>
      <description>&lt;P&gt;Hello, &lt;/P&gt;

&lt;P&gt;I have this following search:&lt;/P&gt;

&lt;P&gt;source="Laura_ACS"| eventstats count as "totalVE"| eventstats count(eval(STAT_VE="N")) as "totalVENO"|eval percent=(totalVENO/totalVE)*100 | stats values(totalVENO) AS COMPTEUR, values(percent) AS TAUX|search TAUX=100&lt;/P&gt;

&lt;P&gt;I want to calculate the "TAUX" for the last 15 min but I want to have a result with a span of 5 min and launch an alert if there are more than 2 results. That means that the TAUX equals 100 twice during the last 15 minutes. How can I apply this span of 5min in my search?&lt;/P&gt;

&lt;P&gt;Thanks by advance,&lt;/P&gt;

&lt;P&gt;Laura &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:09:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/span-5min-for-the-last-15min/m-p/18271#M2626</guid>
      <dc:creator>LauraBre</dc:creator>
      <dc:date>2020-09-28T12:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: span 5min for the last 15min</title>
      <link>https://community.splunk.com/t5/Splunk-Search/span-5min-for-the-last-15min/m-p/18272#M2627</link>
      <description>&lt;P&gt;Perhaps this would help you, for the span/bucket...&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/bucket"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/bucket&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;And then put "&lt;CODE&gt;earliest=-15m latest=0&lt;/CODE&gt;" in you orginal search command (i.e. &lt;CODE&gt;source="Laura_ACS"&lt;/CODE&gt;)&lt;/P&gt;

&lt;P&gt;And then perhaps use &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Streamstats"&gt;streamstats&lt;/A&gt;, instead of stats, to prevent it from formatting results in to a table and keep all raw fields/data,&lt;/P&gt;

&lt;P&gt;You can then use &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Transaction"&gt;transaction&lt;/A&gt; to group events as required, and alert when you have 2 complete transactions&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;

&lt;P&gt;MHibbin&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2012 16:11:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/span-5min-for-the-last-15min/m-p/18272#M2627</guid>
      <dc:creator>MHibbin</dc:creator>
      <dc:date>2012-07-26T16:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: span 5min for the last 15min</title>
      <link>https://community.splunk.com/t5/Splunk-Search/span-5min-for-the-last-15min/m-p/18273#M2628</link>
      <description>&lt;P&gt;I haven't tested this, as I don't have any data available at the moment that I can test this on... its more of some suggestions on points to look at, that have helped me in similar situations.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2012 16:17:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/span-5min-for-the-last-15min/m-p/18273#M2628</guid>
      <dc:creator>MHibbin</dc:creator>
      <dc:date>2012-07-26T16:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: span 5min for the last 15min</title>
      <link>https://community.splunk.com/t5/Splunk-Search/span-5min-for-the-last-15min/m-p/18274#M2629</link>
      <description>&lt;P&gt;Thx very much. I test this tomorrow and I return my search as soon as I have good results.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2012 17:47:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/span-5min-for-the-last-15min/m-p/18274#M2629</guid>
      <dc:creator>LauraBre</dc:creator>
      <dc:date>2012-07-26T17:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: span 5min for the last 15min</title>
      <link>https://community.splunk.com/t5/Splunk-Search/span-5min-for-the-last-15min/m-p/18275#M2630</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I test this but I have a problem because I have to apply the span on all my search : &lt;BR /&gt;
-eventstats count as "totalVE"&lt;BR /&gt;
-eventstats count(eval(STAT_VE="N")) as "totalVENO"&lt;BR /&gt;
-stats values(totalVENO) AS COMPTEUR, values(percent) AS TAUX&lt;/P&gt;

&lt;P&gt;But I don't know how can do it.&lt;/P&gt;

&lt;P&gt;Thanks by advance,&lt;/P&gt;

&lt;P&gt;Laura&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jul 2012 08:28:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/span-5min-for-the-last-15min/m-p/18275#M2630</guid>
      <dc:creator>LauraBre</dc:creator>
      <dc:date>2012-07-27T08:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: span 5min for the last 15min</title>
      <link>https://community.splunk.com/t5/Splunk-Search/span-5min-for-the-last-15min/m-p/18276#M2631</link>
      <description>&lt;P&gt;I'm sorry I don't understand this question ... &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jul 2012 11:18:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/span-5min-for-the-last-15min/m-p/18276#M2631</guid>
      <dc:creator>MHibbin</dc:creator>
      <dc:date>2012-07-27T11:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: span 5min for the last 15min</title>
      <link>https://community.splunk.com/t5/Splunk-Search/span-5min-for-the-last-15min/m-p/18277#M2632</link>
      <description>&lt;P&gt;transaction is an answer but I don't know how can I apply this on my search because I have several subsearches. I want to calculate the taux for all the range time.&lt;/P&gt;

&lt;P&gt;Thx by advance,&lt;/P&gt;

&lt;P&gt;Laura&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jul 2012 12:13:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/span-5min-for-the-last-15min/m-p/18277#M2632</guid>
      <dc:creator>LauraBre</dc:creator>
      <dc:date>2012-07-27T12:13:00Z</dc:date>
    </item>
  </channel>
</rss>

