<?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: Select a row based on highest value of a field. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Select-a-row-based-on-highest-value-of-a-field/m-p/118326#M31584</link>
    <description>&lt;P&gt;thanks from year 2020 &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;</description>
    <pubDate>Tue, 03 Mar 2020 18:32:14 GMT</pubDate>
    <dc:creator>akocak</dc:creator>
    <dc:date>2020-03-03T18:32:14Z</dc:date>
    <item>
      <title>Select a row based on highest value of a field.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Select-a-row-based-on-highest-value-of-a-field/m-p/118323#M31581</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I have a table like below (raw table), which shows count of request per 4 hours from two services over a period of two days. I need to find the count values of ServiceA and ServiceB on each day, when the combined request is at peak per day. That will be the values below.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Peak values:-&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;1/01/2014 4:00  56  89  145
2/01/2014 8:00  56  78  134
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Raw Table:-&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;_time   ServiceA    ServiceB    Total
1/01/2014 0:00  45  56  101
1/01/2014 4:00  56  89  145
1/01/2014 8:00  78  54  132
1/01/2014 12:00 41  11  52
1/01/2014 16:00 23  23  46
1/01/2014 20:00 56  58  114
2/01/2014 0:00  38  56  94
2/01/2014 4:00  54  41  95
2/01/2014 8:00  56  78  134
2/01/2014 12:00 11  23  34
2/01/2014 16:00 23  45  68
2/01/2014 20:00 58  56  114
3/01/2014 0:00  80  49  129
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any ideas how to do it ??? &lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;

&lt;P&gt;KK&lt;/P&gt;</description>
      <pubDate>Wed, 10 Sep 2014 01:40:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Select-a-row-based-on-highest-value-of-a-field/m-p/118323#M31581</guid>
      <dc:creator>KarunK</dc:creator>
      <dc:date>2014-09-10T01:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: Select a row based on highest value of a field.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Select-a-row-based-on-highest-value-of-a-field/m-p/118324#M31582</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;yoursearchhere
| eval the_date=strftime(_time,"%x")
| eventstats max(total) as MaxTotal by the_date
| where Total=MaxTotal
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;HTH&lt;/P&gt;</description>
      <pubDate>Wed, 10 Sep 2014 03:08:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Select-a-row-based-on-highest-value-of-a-field/m-p/118324#M31582</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2014-09-10T03:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: Select a row based on highest value of a field.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Select-a-row-based-on-highest-value-of-a-field/m-p/118325#M31583</link>
      <description>&lt;P&gt;Thank You !!! Appreciate that.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Sep 2014 07:14:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Select-a-row-based-on-highest-value-of-a-field/m-p/118325#M31583</guid>
      <dc:creator>KarunK</dc:creator>
      <dc:date>2014-09-10T07:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: Select a row based on highest value of a field.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Select-a-row-based-on-highest-value-of-a-field/m-p/118326#M31584</link>
      <description>&lt;P&gt;thanks from year 2020 &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2020 18:32:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Select-a-row-based-on-highest-value-of-a-field/m-p/118326#M31584</guid>
      <dc:creator>akocak</dc:creator>
      <dc:date>2020-03-03T18:32:14Z</dc:date>
    </item>
  </channel>
</rss>

