<?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: Grouping multiple times in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Grouping-multiple-times/m-p/234853#M69752</link>
    <description>&lt;P&gt;Yes you were correct I just had to write and additional stats command with MM included&lt;/P&gt;</description>
    <pubDate>Wed, 23 Sep 2015 23:46:35 GMT</pubDate>
    <dc:creator>raby1996</dc:creator>
    <dc:date>2015-09-23T23:46:35Z</dc:date>
    <item>
      <title>Grouping multiple times</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Grouping-multiple-times/m-p/234850#M69749</link>
      <description>&lt;P&gt;Basically I would like to run one stats command where i do some arithmetic and correlation based on one grouping, but i would like to display the results using a different grouping, for example I'm run-in my first stats command grouping by bundle, and display those results grouped by Build.&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2015 23:01:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Grouping-multiple-times/m-p/234850#M69749</guid>
      <dc:creator>raby1996</dc:creator>
      <dc:date>2015-09-23T23:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping multiple times</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Grouping-multiple-times/m-p/234851#M69750</link>
      <description>&lt;P&gt;Hi raby1996,&lt;/P&gt;

&lt;P&gt;The important part is to pass on any needed field for the second &lt;CODE&gt;stats&lt;/CODE&gt; by adding it to the first &lt;CODE&gt;stats&lt;/CODE&gt;. Try something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search here | stats .... by bundle, Build .... | stats ... by Build
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2015 23:10:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Grouping-multiple-times/m-p/234851#M69750</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-09-23T23:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping multiple times</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Grouping-multiple-times/m-p/234852#M69751</link>
      <description>&lt;P&gt;Hmmmm i might be doing something wrong, here is my first stats&lt;/P&gt;

&lt;P&gt;Base Search&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| stats values(Group) as Group list("SFI Level") AS LIC2 count list(MTMS) AS MTMS ,list(Build) AS Build list(it2) AS Current_Bundle_Date , list(nowstring) AS Search_Date(Today) , list(TD) AS Difference , sum(TD) AS Sum, by Bundle
| eval MM=Sum/30.4
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and my second stats which doesn't give me the right MM &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|stats  list(Bundle), list(LIC2),list(Build),list(count), by Group
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Basically I want to group differently without it affecting my results from the first stats(specifically MM) if that makes sense?&lt;BR /&gt;
P.S I apologize I actaully want to group by "Group" i just changed the name in my question to make it less confusing .&lt;BR /&gt;
Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2015 23:32:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Grouping-multiple-times/m-p/234852#M69751</guid>
      <dc:creator>raby1996</dc:creator>
      <dc:date>2015-09-23T23:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping multiple times</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Grouping-multiple-times/m-p/234853#M69752</link>
      <description>&lt;P&gt;Yes you were correct I just had to write and additional stats command with MM included&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2015 23:46:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Grouping-multiple-times/m-p/234853#M69752</guid>
      <dc:creator>raby1996</dc:creator>
      <dc:date>2015-09-23T23:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping multiple times</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Grouping-multiple-times/m-p/234854#M69753</link>
      <description>&lt;P&gt;hmm looks like I don't get it; those are two different &lt;CODE&gt;stats by&lt;/CODE&gt; so the result will not be the same?!?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2015 23:47:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Grouping-multiple-times/m-p/234854#M69753</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-09-23T23:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping multiple times</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Grouping-multiple-times/m-p/234855#M69754</link>
      <description>&lt;P&gt;If this answers your question, please accept the answer - thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2015 23:58:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Grouping-multiple-times/m-p/234855#M69754</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-09-23T23:58:07Z</dc:date>
    </item>
  </channel>
</rss>

