<?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: How can I find an event count of event that are less than a p95 duration? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-find-an-event-count-of-event-that-are-less-than-a-p95/m-p/667738#M229073</link>
    <description>&lt;P&gt;Use &lt;FONT face="courier new,courier"&gt;eventstats&lt;/FONT&gt; to compute the p95 value without losing the other fields.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=xyz status=complete 
| eventstats p95(dur) as p95Dur
| where dur &amp;lt; p95Dur&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 07 Nov 2023 19:19:29 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2023-11-07T19:19:29Z</dc:date>
    <item>
      <title>How can I find an event count of event that are less than a p95 duration?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-find-an-event-count-of-event-that-are-less-than-a-p95/m-p/667732#M229069</link>
      <description>&lt;P&gt;I need to identify the count of events that have a duration that is less than the p95 value.&lt;/P&gt;&lt;P&gt;Sample search&lt;/P&gt;&lt;P&gt;index=xyz status=complete | stats p95(dur) as p95Dur&lt;BR /&gt;&lt;BR /&gt;What can I add to the end of the search to id the number of events less than the p95Dur value?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 19:01:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-find-an-event-count-of-event-that-are-less-than-a-p95/m-p/667732#M229069</guid>
      <dc:creator>mark_groenveld</dc:creator>
      <dc:date>2023-11-07T19:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: How can I find an event count of event that are less than a p95 duration?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-find-an-event-count-of-event-that-are-less-than-a-p95/m-p/667738#M229073</link>
      <description>&lt;P&gt;Use &lt;FONT face="courier new,courier"&gt;eventstats&lt;/FONT&gt; to compute the p95 value without losing the other fields.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=xyz status=complete 
| eventstats p95(dur) as p95Dur
| where dur &amp;lt; p95Dur&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 07 Nov 2023 19:19:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-find-an-event-count-of-event-that-are-less-than-a-p95/m-p/667738#M229073</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-11-07T19:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: How can I find an event count of event that are less than a p95 duration?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-find-an-event-count-of-event-that-are-less-than-a-p95/m-p/667743#M229074</link>
      <description>&lt;P&gt;I find doing eventstats on raw data to be tremendously slow. I'd probably compute the percentile in a subsearch and pass it through. Then you only do the percentile computation once.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;index=xyz status=complete [ search index=xyz status=complete | stats p95(dur) as p95Dur | eval search = "dur&amp;gt;"+p95Dur | table search]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 20:51:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-find-an-event-count-of-event-that-are-less-than-a-p95/m-p/667743#M229074</guid>
      <dc:creator>RobertMarks</dc:creator>
      <dc:date>2023-11-07T20:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: How can I find an event count of event that are less than a p95 duration?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-find-an-event-count-of-event-that-are-less-than-a-p95/m-p/667983#M229183</link>
      <description>&lt;P&gt;Thanks for your response Rich.&amp;nbsp; Using eventstats took too long to complete to the point it wasn't usable.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 21:51:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-find-an-event-count-of-event-that-are-less-than-a-p95/m-p/667983#M229183</guid>
      <dc:creator>mark_groenveld</dc:creator>
      <dc:date>2023-11-08T21:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: How can I find an event count of event that are less than a p95 duration?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-find-an-event-count-of-event-that-are-less-than-a-p95/m-p/667985#M229185</link>
      <description>&lt;P&gt;Thanks Robert.&amp;nbsp; I would like to clarify the search as I need the events less than the p95 duration.&lt;/P&gt;&lt;P&gt;Shouldn't the eval section be:&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;| eval search = "dur&amp;lt;"+p95Dur&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 21:54:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-find-an-event-count-of-event-that-are-less-than-a-p95/m-p/667985#M229185</guid>
      <dc:creator>mark_groenveld</dc:creator>
      <dc:date>2023-11-08T21:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: How can I find an event count of event that are less than a p95 duration?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-find-an-event-count-of-event-that-are-less-than-a-p95/m-p/667987#M229186</link>
      <description>&lt;P&gt;What do you need to retain from those events? eventstats is a slow operation as it will run on the search head, so the amount of information you need should be minimised before using that, so use the fields command to limit only those fields you need beforehand.&lt;/P&gt;&lt;P&gt;If that is still too slow, the subsearch approach may work for you&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 22:32:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-find-an-event-count-of-event-that-are-less-than-a-p95/m-p/667987#M229186</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2023-11-08T22:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: How can I find an event count of event that are less than a p95 duration?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-find-an-event-count-of-event-that-are-less-than-a-p95/m-p/668003#M229189</link>
      <description>&lt;P&gt;I need the count of events.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2023 00:49:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-find-an-event-count-of-event-that-are-less-than-a-p95/m-p/668003#M229189</guid>
      <dc:creator>mark_groenveld</dc:creator>
      <dc:date>2023-11-09T00:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: How can I find an event count of event that are less than a p95 duration?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-find-an-event-count-of-event-that-are-less-than-a-p95/m-p/668181#M229222</link>
      <description>&lt;P&gt;Have you tried just&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=xyz status=complete 
| fields dur | fields - _*
| eventstats p95(dur) as p95Dur
| where dur &amp;lt; p95Dur
| stats count&lt;/LI-CODE&gt;&lt;P&gt;so you only have the dur field in the dataset - I believe that will be significantly faster without having to pull all the data to the search head.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2023 23:35:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-find-an-event-count-of-event-that-are-less-than-a-p95/m-p/668181#M229222</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2023-11-09T23:35:23Z</dc:date>
    </item>
  </channel>
</rss>

