<?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: count and compare the max amount of used different devices each day by groups for a week in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-and-compare-the-max-amount-of-used-different/m-p/587493#M204599</link>
    <description />
    <pubDate>Thu, 03 Mar 2022 17:06:42 GMT</pubDate>
    <dc:creator>lemontree1</dc:creator>
    <dc:date>2022-03-03T17:06:42Z</dc:date>
    <item>
      <title>How to count and compare the max amount of used different devices each day by groups for a week?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-and-compare-the-max-amount-of-used-different/m-p/587418#M204573</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I try to count and compare the max amount of used different devices each day by groups for a week with the maximal available resources.&lt;BR /&gt;For each day I count a different amount of used devices per related group. For a week I want to determine the max. value for each group and compare this value with a predefined max available value.&lt;BR /&gt;With a a query like this:&lt;/P&gt;
&lt;P&gt;&amp;lt;search&amp;gt; | timechart span=1d dc(devicename) by groupname&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Last 7 days&amp;gt;&lt;/P&gt;
&lt;P&gt;I get a table like this&lt;/P&gt;
&lt;P&gt;_time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Group1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Group2&amp;nbsp;&amp;nbsp;&amp;nbsp; Group3 ...&lt;BR /&gt;7.1.2022 &amp;nbsp; &amp;nbsp; &amp;nbsp; 4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;BR /&gt;8.1.2022 &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;BR /&gt;9.1.2022&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;BR /&gt;...&lt;/P&gt;
&lt;P&gt;How I tried to calculate the max value of each column (Group) and compare it with a predefined value for the group?&lt;/P&gt;
&lt;P&gt;With timecharts I didn't success.&lt;BR /&gt;timechart doesn't pass the the value through a next command?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 17:32:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-count-and-compare-the-max-amount-of-used-different/m-p/587418#M204573</guid>
      <dc:creator>lemontree1</dc:creator>
      <dc:date>2022-03-03T17:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: count and compare the max amount of used different devices each day by groups for a week</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-and-compare-the-max-amount-of-used-different/m-p/587420#M204574</link>
      <description>&lt;P&gt;Rather than timechart, use stats&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats max(count) as max by group&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 03 Mar 2022 12:18:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-count-and-compare-the-max-amount-of-used-different/m-p/587420#M204574</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-03-03T12:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: count and compare the max amount of used different devices each day by groups for a week</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-and-compare-the-max-amount-of-used-different/m-p/587493#M204599</link>
      <description />
      <pubDate>Thu, 03 Mar 2022 17:06:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-count-and-compare-the-max-amount-of-used-different/m-p/587493#M204599</guid>
      <dc:creator>lemontree1</dc:creator>
      <dc:date>2022-03-03T17:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: count and compare the max amount of used different devices each day by groups for a week</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-and-compare-the-max-amount-of-used-different/m-p/587496#M204601</link>
      <description>&lt;P&gt;Unfortunately the max field is empty, only the groupnames comes back&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 17:08:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-count-and-compare-the-max-amount-of-used-different/m-p/587496#M204601</guid>
      <dc:creator>lemontree1</dc:creator>
      <dc:date>2022-03-03T17:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: count and compare the max amount of used different devices each day by groups for a week</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-and-compare-the-max-amount-of-used-different/m-p/587504#M204604</link>
      <description>&lt;LI-CODE lang="markup"&gt;| bin _time span=1d
| stats dc(devicename) as dc_devicename by _time groupname
| stats max(dc_devicename) as max_dc_devicename by groupname&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 03 Mar 2022 17:46:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-count-and-compare-the-max-amount-of-used-different/m-p/587504#M204604</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-03-03T17:46:40Z</dc:date>
    </item>
  </channel>
</rss>

