<?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: group results in a form in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/group-results-in-a-form/m-p/29515#M1205</link>
    <description>&lt;P&gt;After "fields memberId ApiKey" just add:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|dedup memberId, ApiKey |table memberId, ApiKey
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 08 Aug 2012 19:24:09 GMT</pubDate>
    <dc:creator>reed_kelly</dc:creator>
    <dc:date>2012-08-08T19:24:09Z</dc:date>
    <item>
      <title>group results in a form</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/group-results-in-a-form/m-p/29514#M1204</link>
      <description>&lt;P&gt;Same as some others trying to grasp my understanding on how the language works.  Well I have a bunch of data based on specific points.  I want the user to enter a number, have it return the following;&lt;/P&gt;

&lt;P&gt;the member of the user that hit it (grouped by this) along with the apikey, nothing else right now.&lt;/P&gt;

&lt;P&gt;I have my form that prompts for an ID, when hit, I get ALL the data, but nothing grouped, and I did try a bunch of ways; here is the form;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Unique Users by Spot&amp;lt;/label&amp;gt;
  &amp;lt;searchTemplate&amp;gt;
    member !=-1 AND (ApiKey="123" OR ApiKey="456" OR ApiKey="789" OR ApiKey="abc")  
    spotId=$Spot Id$ 
    | fields memberId ApiKey
  &amp;lt;/searchTemplate&amp;gt;
  &amp;lt;fieldset&amp;gt;
      &amp;lt;input type="text" token="Spot Id" /&amp;gt;
      &amp;lt;input type="time" /&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
       &amp;lt;table&amp;gt;
          &amp;lt;option name="showpager"&amp;gt;false&amp;lt;/option&amp;gt;
          &amp;lt;option name="count"&amp;gt;50&amp;lt;/option&amp;gt;
     &amp;lt;/table&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Sample results is;&lt;/P&gt;

&lt;P&gt;1 8/6/12 9:55:00.826 PM 229424  abc &lt;BR /&gt;
2 8/5/12 7:30:51.661 PM 273755  123&lt;BR /&gt;
3 8/5/12 3:44:17.216 PM 229424  abc&lt;/P&gt;

&lt;P&gt;the _raw is also displayed, but row's 1 and 3 are the same user (229424) so I would like to group on that.   Tnx&lt;/P&gt;</description>
      <pubDate>Wed, 08 Aug 2012 18:50:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/group-results-in-a-form/m-p/29514#M1204</guid>
      <dc:creator>lancealotx</dc:creator>
      <dc:date>2012-08-08T18:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: group results in a form</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/group-results-in-a-form/m-p/29515#M1205</link>
      <description>&lt;P&gt;After "fields memberId ApiKey" just add:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|dedup memberId, ApiKey |table memberId, ApiKey
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 Aug 2012 19:24:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/group-results-in-a-form/m-p/29515#M1205</guid>
      <dc:creator>reed_kelly</dc:creator>
      <dc:date>2012-08-08T19:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: group results in a form</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/group-results-in-a-form/m-p/29516#M1206</link>
      <description>&lt;P&gt;Thanks, when I tried that, I ended with no results found.  I did play a bit get some results by ending with this;&lt;/P&gt;

&lt;P&gt;|fields memberId ApiKey |dedup memberId|table memberId, ApiKey &lt;/P&gt;

&lt;P&gt;That gives me 5 rows of data (which seems correct) with the 5 members that hit that spot.  The api key however is blank.  The api key is how their getting to us (website, iphone, android), so a user could have multiple, but all of that column is blank.  I don't care so much (right now) about how, that will be later, right now I would like to know in the timeframe;&lt;/P&gt;

&lt;P&gt;user: 12345   10 times&lt;BR /&gt;
user: 56778   5 times&lt;/P&gt;</description>
      <pubDate>Wed, 08 Aug 2012 20:20:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/group-results-in-a-form/m-p/29516#M1206</guid>
      <dc:creator>lancealotx</dc:creator>
      <dc:date>2012-08-08T20:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: group results in a form</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/group-results-in-a-form/m-p/29517#M1207</link>
      <description>&lt;P&gt;In that case, you can replace the fields, dedup and table commands with:&lt;BR /&gt;
|stats count by memberId, ApiKey&lt;/P&gt;

&lt;P&gt;The blanks for ApiKey are strange, because you are testing for that above. You can always leave it off the stats command.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Aug 2012 20:27:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/group-results-in-a-form/m-p/29517#M1207</guid>
      <dc:creator>reed_kelly</dc:creator>
      <dc:date>2012-08-08T20:27:51Z</dc:date>
    </item>
  </channel>
</rss>

