<?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: Display Minimum and Maximum values in a Column in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Display-Minimum-and-Maximum-values-in-a-Column/m-p/83064#M4482</link>
    <description>&lt;P&gt;use stats, not table.&lt;/P&gt;</description>
    <pubDate>Thu, 10 Jan 2013 03:49:33 GMT</pubDate>
    <dc:creator>yannK</dc:creator>
    <dc:date>2013-01-10T03:49:33Z</dc:date>
    <item>
      <title>Display Minimum and Maximum values in a Column</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Display-Minimum-and-Maximum-values-in-a-Column/m-p/83062#M4480</link>
      <description>&lt;P&gt;I am querying a sourcetype which has a field called _time that displays the timestamp of the event. The format of this field is: 1/9/13 10:10:53.000 AM&lt;/P&gt;

&lt;P&gt;Now, I want to display the minimum and maximum timestamps in the entire column.&lt;/P&gt;

&lt;P&gt;I tried using the min and max functions however it does not give any output.&lt;/P&gt;

&lt;P&gt;table min(_time), max(_time)&lt;/P&gt;

&lt;P&gt;This way I would get the first instance and the last instance of the event from the logs. &lt;/P&gt;

&lt;P&gt;I even tried to use the eval function as follows:&lt;/P&gt;

&lt;P&gt;table eval(min(_time)), eval(max(_time))&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:04:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Display-Minimum-and-Maximum-values-in-a-Column/m-p/83062#M4480</guid>
      <dc:creator>NeonFlash</dc:creator>
      <dc:date>2020-09-28T13:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: Display Minimum and Maximum values in a Column</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Display-Minimum-and-Maximum-values-in-a-Column/m-p/83063#M4481</link>
      <description>&lt;P&gt;I think you may be looking for the commands head and tail.  &lt;/P&gt;

&lt;P&gt;&lt;YOUR search=""&gt; | head 1 will give you the latest event and tail will give you the earliest for your specified time range.&lt;/YOUR&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/head"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/head&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.1/SearchReference/Tail"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.1/SearchReference/Tail&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2013 03:31:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Display-Minimum-and-Maximum-values-in-a-Column/m-p/83063#M4481</guid>
      <dc:creator>sdaniels</dc:creator>
      <dc:date>2013-01-10T03:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: Display Minimum and Maximum values in a Column</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Display-Minimum-and-Maximum-values-in-a-Column/m-p/83064#M4482</link>
      <description>&lt;P&gt;use stats, not table.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2013 03:49:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Display-Minimum-and-Maximum-values-in-a-Column/m-p/83064#M4482</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2013-01-10T03:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Display Minimum and Maximum values in a Column</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Display-Minimum-and-Maximum-values-in-a-Column/m-p/83065#M4483</link>
      <description>&lt;P&gt;I recommend you to use the following search commans after your searches.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(your search) 
| stats max(_time) AS max min(_time) AS min 
| eval max=strftime(max, "%Y/%m/%d %T.%3Q") 
| eval min=strftime(min, "%Y/%m/%d %T.%3Q")
| table min max
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2013 06:37:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Display-Minimum-and-Maximum-values-in-a-Column/m-p/83065#M4483</guid>
      <dc:creator>Suda</dc:creator>
      <dc:date>2013-01-10T06:37:43Z</dc:date>
    </item>
  </channel>
</rss>

