<?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 Timechart  of max(variable) - get actual time of peak, instead of bin time in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Timechart-of-max-variable-get-actual-time-of-peak-instead-of-bin/m-p/299359#M90224</link>
    <description>&lt;P&gt;When I do a timechart - I get the max of my variable in the chart.&lt;/P&gt;

&lt;P&gt;However, if I hover over the value - the time associated is the bin time of the timechart and not the actual time of the event.&lt;/P&gt;

&lt;P&gt;i.e. for a 24 hour search&lt;BR /&gt;
timechart max(latency) span=30m&lt;/P&gt;

&lt;P&gt;If I had an event measuring 1500 at 10:37:45 which was the max in that bin, it will chart 1500, but it will timestamp at 10;30, the beginning of the bin.&lt;/P&gt;

&lt;P&gt;How do I get it to show the actual event _time ? &lt;/P&gt;</description>
    <pubDate>Fri, 31 Mar 2017 15:22:08 GMT</pubDate>
    <dc:creator>sperl</dc:creator>
    <dc:date>2017-03-31T15:22:08Z</dc:date>
    <item>
      <title>Timechart  of max(variable) - get actual time of peak, instead of bin time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-of-max-variable-get-actual-time-of-peak-instead-of-bin/m-p/299359#M90224</link>
      <description>&lt;P&gt;When I do a timechart - I get the max of my variable in the chart.&lt;/P&gt;

&lt;P&gt;However, if I hover over the value - the time associated is the bin time of the timechart and not the actual time of the event.&lt;/P&gt;

&lt;P&gt;i.e. for a 24 hour search&lt;BR /&gt;
timechart max(latency) span=30m&lt;/P&gt;

&lt;P&gt;If I had an event measuring 1500 at 10:37:45 which was the max in that bin, it will chart 1500, but it will timestamp at 10;30, the beginning of the bin.&lt;/P&gt;

&lt;P&gt;How do I get it to show the actual event _time ? &lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 15:22:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-of-max-variable-get-actual-time-of-peak-instead-of-bin/m-p/299359#M90224</guid>
      <dc:creator>sperl</dc:creator>
      <dc:date>2017-03-31T15:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart  of max(variable) - get actual time of peak, instead of bin time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-of-max-variable-get-actual-time-of-peak-instead-of-bin/m-p/299360#M90225</link>
      <description>&lt;P&gt;Give this a try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search 
| eventstats max(latency) as max 
| eval MaxTimestamp=if(latency=max,_time,null())
| timechart span=30m max(latency) as maxLatency values(MaxTimestamp) as MaxTimestamp values(max) as max
| appendpipe [| dedup MaxTimestamp max | eval _time=MaxTimestamp | eval maxLatency =max ]
| table _time maxLatency | sort _time
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 31 Mar 2017 16:19:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-of-max-variable-get-actual-time-of-peak-instead-of-bin/m-p/299360#M90225</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-03-31T16:19:25Z</dc:date>
    </item>
  </channel>
</rss>

