<?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: Get values of several series during same timespan that the maximum of one series during a day in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Get-values-of-several-series-during-same-timespan-that-the/m-p/500532#M139355</link>
    <description>&lt;PRE&gt;&lt;CODE&gt; &amp;lt;search string&amp;gt;
 | bucket _time span=1h 
 | stats dc(Serial) as dcSerial, dc(otherserial) as dcOtherSerial by _time 
 | bucket _time span=1d 
 | eval Processedtime=strptime(_time,"%s") 
 | eventstats max(dcSerial) avg(dcSerial) max(dcOtherSerial) avg(dcOtherSerial) by Processedtime
 | where as_you_like
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;use &lt;CODE&gt;eventstats&lt;/CODE&gt; not &lt;CODE&gt;stats&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 24 May 2020 00:20:14 GMT</pubDate>
    <dc:creator>to4kawa</dc:creator>
    <dc:date>2020-05-24T00:20:14Z</dc:date>
    <item>
      <title>Get values of several series during same timespan that the maximum of one series during a day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Get-values-of-several-series-during-same-timespan-that-the/m-p/500531#M139354</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I built a report that list daily maximums and averages of counts per hour on several days. (difficult to put it in phrase..)&lt;BR /&gt;
Here is the query I use:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;search string&amp;gt;
| bucket _time span=1h 
| stats dc(Serial) as dcSerial, dc(otherserial) as dcOtherSerial by _time 
| bucket _time span=1d 
| eval Processedtime=strptime(_time,"%s") 
| stats max(dcSerial) avg(dcSerial) max(dcOtherSerial) avg(dcOtherSerial) by Processedtime
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So this query returns maximums of distinct counts of each fields, which is good.&lt;BR /&gt;
But what I need is to return the dcOtherSerial has when dcSerial is at the maximum during the day  (because I don't care about the maximum of dcOtherSerial, I want to correlate both of them).&lt;BR /&gt;
Is it understandable ?&lt;/P&gt;

&lt;P&gt;any thoughts?&lt;/P&gt;

&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2020 13:05:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Get-values-of-several-series-during-same-timespan-that-the/m-p/500531#M139354</guid>
      <dc:creator>gregory_cordier</dc:creator>
      <dc:date>2020-05-18T13:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: Get values of several series during same timespan that the maximum of one series during a day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Get-values-of-several-series-during-same-timespan-that-the/m-p/500532#M139355</link>
      <description>&lt;PRE&gt;&lt;CODE&gt; &amp;lt;search string&amp;gt;
 | bucket _time span=1h 
 | stats dc(Serial) as dcSerial, dc(otherserial) as dcOtherSerial by _time 
 | bucket _time span=1d 
 | eval Processedtime=strptime(_time,"%s") 
 | eventstats max(dcSerial) avg(dcSerial) max(dcOtherSerial) avg(dcOtherSerial) by Processedtime
 | where as_you_like
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;use &lt;CODE&gt;eventstats&lt;/CODE&gt; not &lt;CODE&gt;stats&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 24 May 2020 00:20:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Get-values-of-several-series-during-same-timespan-that-the/m-p/500532#M139355</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-05-24T00:20:14Z</dc:date>
    </item>
  </channel>
</rss>

