<?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: find maximum value of a field by host over the last 7 days in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/find-maximum-value-of-a-field-by-host-over-the-last-7-days/m-p/428895#M122675</link>
    <description>&lt;P&gt;Try the below query, you can do transpose if needed&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=perfmon sourcetype="Perfmon:" host=A OR host=B OR host=C OR host=D object="Processor" counter="% Processor Time" instance="" 
|  eval date= strftime(_time,"%Y-%m-%d")

|  sort - 0 date host Value
| dedup   date host
| table _time Value host
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 18 Oct 2018 04:31:51 GMT</pubDate>
    <dc:creator>Vijeta</dc:creator>
    <dc:date>2018-10-18T04:31:51Z</dc:date>
    <item>
      <title>find maximum value of a field by host over the last 7 days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/find-maximum-value-of-a-field-by-host-over-the-last-7-days/m-p/428894#M122674</link>
      <description>&lt;P&gt;I need am trying to find the  maximum value of a field(Peak value and time at which it happened everyday) based on a other field for the last seven days, I am using the time chart to get the values of the field but I need the exact time of the filed when it occurred rather than only the day. Can someone help me with this?&lt;/P&gt;

&lt;P&gt;Need the know what is the Peak Processing time of hosts and the time when that is occurring. &lt;/P&gt;

&lt;P&gt;index=&lt;EM&gt;perfmon&lt;/EM&gt; sourcetype="Perfmon:&lt;EM&gt;"  host=A OR host=B OR host=C OR host=D object="Processor" counter="% Processor Time" instance="&lt;/EM&gt;" &lt;BR /&gt;
 | timechart span=1d  max(Value) as Peak by host &lt;/P&gt;

&lt;P&gt;which gives results as,&lt;/P&gt;

&lt;P&gt;_time                         A      B       C       D&lt;BR /&gt;
2018-10-10              45    67     6        56&lt;BR /&gt;
2018-10-11              12    45    56      45&lt;BR /&gt;
2018-10-12               79   78     34     67&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2018 21:48:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/find-maximum-value-of-a-field-by-host-over-the-last-7-days/m-p/428894#M122674</guid>
      <dc:creator>arrangineni</dc:creator>
      <dc:date>2018-10-17T21:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: find maximum value of a field by host over the last 7 days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/find-maximum-value-of-a-field-by-host-over-the-last-7-days/m-p/428895#M122675</link>
      <description>&lt;P&gt;Try the below query, you can do transpose if needed&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=perfmon sourcetype="Perfmon:" host=A OR host=B OR host=C OR host=D object="Processor" counter="% Processor Time" instance="" 
|  eval date= strftime(_time,"%Y-%m-%d")

|  sort - 0 date host Value
| dedup   date host
| table _time Value host
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 Oct 2018 04:31:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/find-maximum-value-of-a-field-by-host-over-the-last-7-days/m-p/428895#M122675</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2018-10-18T04:31:51Z</dc:date>
    </item>
  </channel>
</rss>

