<?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: How do I create a histogram to show distribution? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-histogram-to-show-distribution/m-p/448486#M127065</link>
    <description>&lt;P&gt;Be sure to spread around the &lt;CODE&gt;UpVotes&lt;/CODE&gt; and click &lt;CODE&gt;Accept&lt;/CODE&gt; on the best answer to close the question.&lt;/P&gt;</description>
    <pubDate>Thu, 14 Feb 2019 21:00:51 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2019-02-14T21:00:51Z</dc:date>
    <item>
      <title>How do I create a histogram to show distribution?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-histogram-to-show-distribution/m-p/448478#M127057</link>
      <description>&lt;P&gt;I have a search like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;My Search|chart count(data.url) as SongsPlayed  over userEmail
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It gives me a list of users and the number of songs they listen to for a time.&lt;/P&gt;

&lt;P&gt;I would like a chart that breaks down the users in groups, like those who listen between 0-10, the up to 20, 30 etc.&lt;/P&gt;

&lt;P&gt;How do I do that in Splunk?&lt;/P&gt;

&lt;P&gt;Eva&lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2019 19:31:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-histogram-to-show-distribution/m-p/448478#M127057</guid>
      <dc:creator>earriaga</dc:creator>
      <dc:date>2019-02-07T19:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a histogram to show distribution?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-histogram-to-show-distribution/m-p/448479#M127058</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;My Search | bin _time span=10s | stats count(data.url) AS SongsPlayed BY userEmail _time
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Feb 2019 20:54:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-histogram-to-show-distribution/m-p/448479#M127058</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-02-07T20:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a histogram to show distribution?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-histogram-to-show-distribution/m-p/448480#M127059</link>
      <description>&lt;P&gt;Thank you that works, but it is giving me users per 10 seconds, I think?&lt;/P&gt;

&lt;P&gt;I want to count number of users, and the number of songs they play.&lt;/P&gt;

&lt;P&gt;My basic query gives me the user email and the number of songs they listen to.&lt;/P&gt;

&lt;P&gt;What I want is to group those users in buckets, of those who listen between 0 and 10, those who listen to etc.&lt;BR /&gt;
So for example, it would be a bar graph for each bucket of songs.&lt;BR /&gt;
10 users play 0-10 songs&lt;BR /&gt;
34 users play 11-20 songs&lt;BR /&gt;
etc&lt;/P&gt;</description>
      <pubDate>Mon, 11 Feb 2019 18:28:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-histogram-to-show-distribution/m-p/448480#M127059</guid>
      <dc:creator>earriaga</dc:creator>
      <dc:date>2019-02-11T18:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a histogram to show distribution?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-histogram-to-show-distribution/m-p/448481#M127060</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;My Search
| stats count(data.url) AS songsPlayed BY userEmail
| bin songsPlayed span=10
| stats dc(userEmail) AS users BY songsPlayed
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Feb 2019 23:23:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-histogram-to-show-distribution/m-p/448481#M127060</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-02-11T23:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a histogram to show distribution?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-histogram-to-show-distribution/m-p/448482#M127061</link>
      <description>&lt;P&gt;Hi, thank you, it is getting closer but it is still not working.&lt;/P&gt;

&lt;P&gt;When I enter this:&lt;BR /&gt;
index="mobile_app_tracking" event=song &lt;BR /&gt;
|stats count(data.url) as SongsPlayed  BY userEmail&lt;BR /&gt;
| bin SongsPlayed span=10&lt;/P&gt;

&lt;P&gt;I see results, emails with the bucket where they belong&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://community.splunk.com/storage/temp/267629-almost.jpg" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;But, when I put the whole thing as you suggested,&lt;/P&gt;

&lt;P&gt;I get nothing, no results!&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://community.splunk.com/storage/temp/267628-no-results.jpg" alt="alt text" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:13:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-histogram-to-show-distribution/m-p/448482#M127061</guid>
      <dc:creator>earriaga</dc:creator>
      <dc:date>2020-09-29T23:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a histogram to show distribution?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-histogram-to-show-distribution/m-p/448483#M127062</link>
      <description>&lt;P&gt;You typed it in wrong (my answer has it right).  You typed &lt;CODE&gt;SongPlayed&lt;/CODE&gt; as the last word and it should be &lt;CODE&gt;SongsPlayed&lt;/CODE&gt;.  Missed it by &lt;CODE&gt;&amp;gt;that&amp;lt;&lt;/CODE&gt; much!&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 01:55:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-histogram-to-show-distribution/m-p/448483#M127062</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-02-13T01:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a histogram to show distribution?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-histogram-to-show-distribution/m-p/448484#M127063</link>
      <description>&lt;P&gt;Yay, thank you very much!!!&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2019 15:27:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-histogram-to-show-distribution/m-p/448484#M127063</guid>
      <dc:creator>earriaga</dc:creator>
      <dc:date>2019-02-14T15:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a histogram to show distribution?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-histogram-to-show-distribution/m-p/448485#M127064</link>
      <description>&lt;P&gt;It is sorting the buckets as text, all the 10, 100 etc first. Is there a way to order the buckets as number? Or I am asking too much?&lt;BR /&gt;
:)&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2019 15:33:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-histogram-to-show-distribution/m-p/448485#M127064</guid>
      <dc:creator>earriaga</dc:creator>
      <dc:date>2019-02-14T15:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a histogram to show distribution?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-histogram-to-show-distribution/m-p/448486#M127065</link>
      <description>&lt;P&gt;Be sure to spread around the &lt;CODE&gt;UpVotes&lt;/CODE&gt; and click &lt;CODE&gt;Accept&lt;/CODE&gt; on the best answer to close the question.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2019 21:00:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-histogram-to-show-distribution/m-p/448486#M127065</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-02-14T21:00:51Z</dc:date>
    </item>
  </channel>
</rss>

