<?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 generate a histogram from a comma separated list of numbers? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-generate-a-histogram-from-a-comma-separated-list-of/m-p/200160#M43614</link>
    <description>&lt;P&gt;When I try this I get an table with only time stamps in it and no data in the ph column. I removed the chart command as it was returning no data for me to inspect.&lt;/P&gt;</description>
    <pubDate>Tue, 20 Sep 2016 17:42:08 GMT</pubDate>
    <dc:creator>Magrilloc</dc:creator>
    <dc:date>2016-09-20T17:42:08Z</dc:date>
    <item>
      <title>How do I generate a histogram from a comma separated list of numbers?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-generate-a-histogram-from-a-comma-separated-list-of/m-p/200158#M43612</link>
      <description>&lt;P&gt;I have events formatted like this:&lt;/P&gt;

&lt;P&gt;09/19/16 07:07:00 | Name=ABC123 Host=MyHost123.com&lt;BR /&gt;
ProcessHistogram2: 0,0,0,0,0,0,0,1,0,34,66,66,64,68,60,79,7374,13812,0,0,0,0,0,0,0,0,0,0&lt;/P&gt;

&lt;P&gt;I am trying to generate an aggregate (min,average and max) histogram chart over time where each comma separated value is a bucket.&lt;/P&gt;

&lt;P&gt;I have some control over the data format, so I can rearrange the event formatting if it makes the search easier.&lt;/P&gt;

&lt;P&gt;Doing it in excel would result in something like this:&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/1868i85BD0660D69AC564/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2016 07:38:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-generate-a-histogram-from-a-comma-separated-list-of/m-p/200158#M43612</guid>
      <dc:creator>Magrilloc</dc:creator>
      <dc:date>2016-09-19T07:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: How do I generate a histogram from a comma separated list of numbers?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-generate-a-histogram-from-a-comma-separated-list-of/m-p/200159#M43613</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Name=123 Host=ABC | rex "ProcessHistogram2\:\s(?&amp;lt;ph&amp;gt;[^\s]+)" | eval times="0,1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100,200,300,400,500,600,700,800,900" | makemv ph delim="," | makemv times delim="," | eval z=mvzip(times, ph) | mvexpand z | rex field=z "(?&amp;lt;t&amp;gt;[^\,]+)\,(?&amp;lt;ph&amp;gt;.*)" | table _time t ph | chart values(ph) as ph over t by _time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.3/SearchReference/Chart"&gt;http://docs.splunk.com/Documentation/Splunk/6.4.3/SearchReference/Chart&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2016 23:28:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-generate-a-histogram-from-a-comma-separated-list-of/m-p/200159#M43613</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-09-19T23:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do I generate a histogram from a comma separated list of numbers?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-generate-a-histogram-from-a-comma-separated-list-of/m-p/200160#M43614</link>
      <description>&lt;P&gt;When I try this I get an table with only time stamps in it and no data in the ph column. I removed the chart command as it was returning no data for me to inspect.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2016 17:42:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-generate-a-histogram-from-a-comma-separated-list-of/m-p/200160#M43614</guid>
      <dc:creator>Magrilloc</dc:creator>
      <dc:date>2016-09-20T17:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: How do I generate a histogram from a comma separated list of numbers?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-generate-a-histogram-from-a-comma-separated-list-of/m-p/200161#M43615</link>
      <description>&lt;P&gt;Try this search "as-is". This is a run-anywhere sample. See if this gives you the desired results&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults | eval ph="0,0,0,0,0,0,0,1,0,34,66,66,64,68,60,79,7374,13812,0,0,0,0,0,0,0,0,0,0" | eval times="0,1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100,200,300,400,500,600,700,800,900" | makemv ph delim="," | makemv times delim="," | eval z=mvzip(times, ph) | mvexpand z | rex field=z "(?&amp;lt;t&amp;gt;[^\,]+)\,(?&amp;lt;ph&amp;gt;.*)" | table _time t ph | chart values(ph) as ph over t by _time
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Sep 2016 17:50:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-generate-a-histogram-from-a-comma-separated-list-of/m-p/200161#M43615</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-09-20T17:50:37Z</dc:date>
    </item>
  </channel>
</rss>

