<?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 to get the max and min for a combination of multiple fields ? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-get-the-max-and-min-for-a-combination-of-multiple-fields/m-p/29026#M5805</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;&amp;lt;your search&amp;gt; | stats max(err) min(err) by host,fpc,ichip
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;edit:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;* | stats max(err) as max_err min(err) as min_err by host,fpc,ichip | eval rate=(max_err-min_err)/720 | fields - max_err min_err | sort -rate
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 13 Aug 2010 01:02:55 GMT</pubDate>
    <dc:creator>ziegfried</dc:creator>
    <dc:date>2010-08-13T01:02:55Z</dc:date>
    <item>
      <title>how to get the max and min for a combination of multiple fields ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-get-the-max-and-min-for-a-combination-of-multiple-fields/m-p/29025#M5804</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;* | rex "(?&amp;lt;fpc&amp;gt;fpc\d+) (?&amp;lt;ichip&amp;gt;ICHIP\(\d+\)):Packet drop in Ichip pktwr,rate: %\S+: \d+, total: (?&amp;lt;err&amp;gt;\d+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How do I get the max(err) and min(err) for each combination of host, fpc, ichip ?&lt;/P&gt;

&lt;P&gt;err is an integer number.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Aug 2010 00:03:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-get-the-max-and-min-for-a-combination-of-multiple-fields/m-p/29025#M5804</guid>
      <dc:creator>vadud3</dc:creator>
      <dc:date>2010-08-13T00:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the max and min for a combination of multiple fields ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-get-the-max-and-min-for-a-combination-of-multiple-fields/m-p/29026#M5805</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;&amp;lt;your search&amp;gt; | stats max(err) min(err) by host,fpc,ichip
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;edit:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;* | stats max(err) as max_err min(err) as min_err by host,fpc,ichip | eval rate=(max_err-min_err)/720 | fields - max_err min_err | sort -rate
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 13 Aug 2010 01:02:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-get-the-max-and-min-for-a-combination-of-multiple-fields/m-p/29026#M5805</guid>
      <dc:creator>ziegfried</dc:creator>
      <dc:date>2010-08-13T01:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the max and min for a combination of multiple fields ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-get-the-max-and-min-for-a-combination-of-multiple-fields/m-p/29027#M5806</link>
      <description>&lt;P&gt;how do I sort it by host with highest rate ? rate is (max(err) - min(err)) / 720&lt;/P&gt;</description>
      <pubDate>Fri, 13 Aug 2010 03:51:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-get-the-max-and-min-for-a-combination-of-multiple-fields/m-p/29027#M5806</guid>
      <dc:creator>vadud3</dc:creator>
      <dc:date>2010-08-13T03:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the max and min for a combination of multiple fields ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-get-the-max-and-min-for-a-combination-of-multiple-fields/m-p/29028#M5807</link>
      <description>&lt;P&gt;added to the answer&lt;/P&gt;</description>
      <pubDate>Fri, 13 Aug 2010 03:53:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-get-the-max-and-min-for-a-combination-of-multiple-fields/m-p/29028#M5807</guid>
      <dc:creator>ziegfried</dc:creator>
      <dc:date>2010-08-13T03:53:55Z</dc:date>
    </item>
  </channel>
</rss>

