<?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: help to display min and max in a timechart in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-min-and-max-in-a-timechart/m-p/587193#M204505</link>
    <description>&lt;P&gt;if i just run&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; | timechart span=15min dc(s) as "Nb"&lt;/LI-CODE&gt;&lt;P&gt;I have results&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jip31_0-1646219026219.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/18210i134C1557C7B03076/image-size/large?v=v2&amp;amp;px=999" role="button" title="jip31_0-1646219026219.png" alt="jip31_0-1646219026219.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;but if I run&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; | timechart span=15min dc(s) as "Nb" min(s) as min, max(s) as max&lt;/LI-CODE&gt;&lt;P&gt;I have any results&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jip31_1-1646219311699.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/18211i8A1A41797EA36CE1/image-size/large?v=v2&amp;amp;px=999" role="button" title="jip31_1-1646219311699.png" alt="jip31_1-1646219311699.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Mar 2022 11:09:02 GMT</pubDate>
    <dc:creator>jip31</dc:creator>
    <dc:date>2022-03-02T11:09:02Z</dc:date>
    <item>
      <title>How to display min and max in a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-min-and-max-in-a-timechart/m-p/587171#M204496</link>
      <description>&lt;P&gt;hello&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I use this timechart&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=tutu sourcetype=titi 
| timechart span=15min dc(s) as "Uniq"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Now i would like to display 2 more lines with min and max for "s" field&lt;/P&gt;
&lt;P&gt;is it possible&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 20:20:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-min-and-max-in-a-timechart/m-p/587171#M204496</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2022-03-02T20:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: help to display min and max in a timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-min-and-max-in-a-timechart/m-p/587176#M204497</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/102660"&gt;@jip31&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Along with the dc function, you can also use the min() and max() functions to fetch the minimum and maximum value of the field respectively. Your query should look something like below&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=tutu sourcetype=titi 
| timechart span=15min dc(s) as "Uniq" min(s) as s_min max(s) as s_max&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 02 Mar 2022 10:27:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-min-and-max-in-a-timechart/m-p/587176#M204497</guid>
      <dc:creator>tshah-splunk</dc:creator>
      <dc:date>2022-03-02T10:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: help to display min and max in a timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-min-and-max-in-a-timechart/m-p/587179#M204498</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| timechart dc(value) as unique min(value) as min_s max(value) as max_s span=15m&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 10:30:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-min-and-max-in-a-timechart/m-p/587179#M204498</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-03-02T10:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: help to display min and max in a timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-min-and-max-in-a-timechart/m-p/587182#M204499</link>
      <description>&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;it's exactly what I done and I have no results...&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 10:34:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-min-and-max-in-a-timechart/m-p/587182#M204499</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2022-03-02T10:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: help to display min and max in a timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-min-and-max-in-a-timechart/m-p/587184#M204501</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;it's exactly what I done and I have no results...&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;i have just results with&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| timechart dc(value) as unique​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 02 Mar 2022 10:36:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-min-and-max-in-a-timechart/m-p/587184#M204501</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2022-03-02T10:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: help to display min and max in a timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-min-and-max-in-a-timechart/m-p/587187#M204503</link>
      <description>&lt;P&gt;Sounds like there is something different about your data or setup, because this is the way to do what you asked. Can you share more details and a screenshot of your results?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 10:42:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-min-and-max-in-a-timechart/m-p/587187#M204503</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-03-02T10:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: help to display min and max in a timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-min-and-max-in-a-timechart/m-p/587193#M204505</link>
      <description>&lt;P&gt;if i just run&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; | timechart span=15min dc(s) as "Nb"&lt;/LI-CODE&gt;&lt;P&gt;I have results&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jip31_0-1646219026219.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/18210i134C1557C7B03076/image-size/large?v=v2&amp;amp;px=999" role="button" title="jip31_0-1646219026219.png" alt="jip31_0-1646219026219.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;but if I run&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; | timechart span=15min dc(s) as "Nb" min(s) as min, max(s) as max&lt;/LI-CODE&gt;&lt;P&gt;I have any results&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jip31_1-1646219311699.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/18211i8A1A41797EA36CE1/image-size/large?v=v2&amp;amp;px=999" role="button" title="jip31_1-1646219311699.png" alt="jip31_1-1646219311699.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 11:09:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-min-and-max-in-a-timechart/m-p/587193#M204505</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2022-03-02T11:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: help to display min and max in a timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-min-and-max-in-a-timechart/m-p/587195#M204507</link>
      <description>&lt;P&gt;Verify that the field you're trying to calculate max and min on are numeric fields.&lt;/P&gt;&lt;P&gt;With simple stats max() and min() on text field would give you results (although it would be calculated based on lexicographic order) but timechart will return empty result of such aggregation.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 11:14:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-min-and-max-in-a-timechart/m-p/587195#M204507</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-03-02T11:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: help to display min and max in a timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-min-and-max-in-a-timechart/m-p/587196#M204508</link>
      <description>&lt;P&gt;Do you get anything if you just do min?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; | timechart span=15min min(s) as min&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 02 Mar 2022 11:17:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-min-and-max-in-a-timechart/m-p/587196#M204508</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-03-02T11:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: help to display min and max in a timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-min-and-max-in-a-timechart/m-p/587198#M204510</link>
      <description>&lt;P&gt;no&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 11:19:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-min-and-max-in-a-timechart/m-p/587198#M204510</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2022-03-02T11:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: help to display min and max in a timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-min-and-max-in-a-timechart/m-p/587199#M204511</link>
      <description>&lt;P&gt;your are right&lt;/P&gt;&lt;P&gt;"s" field is not numeric&lt;/P&gt;&lt;P&gt;when I am doing dc(s) , i count the number of "s" fields so it works but for min and max because its not numeric it doesnt works of course&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 11:22:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-min-and-max-in-a-timechart/m-p/587199#M204511</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2022-03-02T11:22:19Z</dc:date>
    </item>
  </channel>
</rss>

