<?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: min max in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-there-another-way-to-use-min-max/m-p/640009#M221776</link>
    <description>&lt;P&gt;but I want only output new finding separate table and old in separate table.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Apr 2023 20:00:11 GMT</pubDate>
    <dc:creator>karu0711</dc:creator>
    <dc:date>2023-04-14T20:00:11Z</dc:date>
    <item>
      <title>Is there another way to use min max?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-another-way-to-use-min-max/m-p/639990#M221772</link>
      <description>&lt;P&gt;I am running search.&lt;BR /&gt;basesearch&amp;nbsp; |eventstats count values(date) as Date by ID&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;result I get count 2 or 3 or 1&lt;BR /&gt;how do I get count=1 OR count=3.&amp;nbsp;&lt;BR /&gt;how I use max(count)&amp;nbsp; and min(count).&amp;nbsp;&lt;BR /&gt;I need this because min(count) will new data and max(count) will old data.&amp;nbsp;&lt;BR /&gt;Is there any other way to do this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 20:39:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-another-way-to-use-min-max/m-p/639990#M221772</guid>
      <dc:creator>karu0711</dc:creator>
      <dc:date>2023-04-14T20:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: min max</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-another-way-to-use-min-max/m-p/639993#M221775</link>
      <description>&lt;P&gt;Perhaps you mean streamstats to number the events which would normally be in reverse chronological order i.e. newest first?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;basesearch
| streamstats count by ID&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 14 Apr 2023 19:05:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-another-way-to-use-min-max/m-p/639993#M221775</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-04-14T19:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: min max</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-another-way-to-use-min-max/m-p/640009#M221776</link>
      <description>&lt;P&gt;but I want only output new finding separate table and old in separate table.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 20:00:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-another-way-to-use-min-max/m-p/640009#M221776</guid>
      <dc:creator>karu0711</dc:creator>
      <dc:date>2023-04-14T20:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: min max</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-another-way-to-use-min-max/m-p/640010#M221777</link>
      <description>&lt;P&gt;For new use:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;basesearch
| streamstats count by ID
| where count == 1&lt;/LI-CODE&gt;&lt;P&gt;For old use:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;basesearch
| streamstats count by ID
| eventstats max(count) as last by ID
| where count == last&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 14 Apr 2023 20:16:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-another-way-to-use-min-max/m-p/640010#M221777</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-04-14T20:16:36Z</dc:date>
    </item>
  </channel>
</rss>

