<?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 How to edit my search to create a bubble chart with dates shown on X axis? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-a-bubble-chart-with-dates-shown/m-p/278126#M83948</link>
    <description>&lt;P&gt;I have a search that returns me 3 fields (let's say country, _time, count)&lt;/P&gt;

&lt;P&gt;I want to show these results in a bubble chart but the X axis (_time) instead of returning dates, it returns 0, 1, 2, 3 etc - it's as if instead of taking the actual date it is taking the line number where the _time field is populated and using that.&lt;/P&gt;

&lt;P&gt;I've been playing with date formats and other options but it makes no difference.&lt;/P&gt;

&lt;P&gt;Hopefully one of you Splunk gurus can put me out of my misery and let me know what I'm doing wrong!&lt;/P&gt;</description>
    <pubDate>Mon, 06 Feb 2017 13:18:40 GMT</pubDate>
    <dc:creator>andyp54</dc:creator>
    <dc:date>2017-02-06T13:18:40Z</dc:date>
    <item>
      <title>How to edit my search to create a bubble chart with dates shown on X axis?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-a-bubble-chart-with-dates-shown/m-p/278126#M83948</link>
      <description>&lt;P&gt;I have a search that returns me 3 fields (let's say country, _time, count)&lt;/P&gt;

&lt;P&gt;I want to show these results in a bubble chart but the X axis (_time) instead of returning dates, it returns 0, 1, 2, 3 etc - it's as if instead of taking the actual date it is taking the line number where the _time field is populated and using that.&lt;/P&gt;

&lt;P&gt;I've been playing with date formats and other options but it makes no difference.&lt;/P&gt;

&lt;P&gt;Hopefully one of you Splunk gurus can put me out of my misery and let me know what I'm doing wrong!&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2017 13:18:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-a-bubble-chart-with-dates-shown/m-p/278126#M83948</guid>
      <dc:creator>andyp54</dc:creator>
      <dc:date>2017-02-06T13:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to create a bubble chart with dates shown on X axis?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-a-bubble-chart-with-dates-shown/m-p/278127#M83949</link>
      <description>&lt;P&gt;Can you share your search?&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2017 13:56:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-a-bubble-chart-with-dates-shown/m-p/278127#M83949</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-02-06T13:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to create a bubble chart with dates shown on X axis?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-a-bubble-chart-with-dates-shown/m-p/278128#M83950</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;index=?? sourcetype=?? country=* | bucket  _time span=1d | stats count by country, _time, EventCode (span of 30 days)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;replaced my real index &amp;amp; sourcetype with ?? above but the query works in real life.&lt;/P&gt;

&lt;P&gt;I get a nice stats page with results grouped by day but my over in visualizations &amp;gt; bubble chart my X axis (_time) goes from 0 - 58)&lt;/P&gt;

&lt;P&gt;Thanks Giuseppe!&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2017 14:06:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-a-bubble-chart-with-dates-shown/m-p/278128#M83950</guid>
      <dc:creator>andyp54</dc:creator>
      <dc:date>2017-02-06T14:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to create a bubble chart with dates shown on X axis?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-a-bubble-chart-with-dates-shown/m-p/278129#M83951</link>
      <description>&lt;P&gt;Hi andyp54,&lt;BR /&gt;
if you see in the Dashboard example Bubblechart (see &lt;A href="https://splunkbase.splunk.com/app/1603/"&gt;https://splunkbase.splunk.com/app/1603/&lt;/A&gt;) with the bubblechart graph you can use only two parameters (your have three: country, _time, EventCode!).&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2017 14:16:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-a-bubble-chart-with-dates-shown/m-p/278129#M83951</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-02-06T14:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to create a bubble chart with dates shown on X axis?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-a-bubble-chart-with-dates-shown/m-p/278130#M83952</link>
      <description>&lt;P&gt;Use bin to turn the _time field into dates/days.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| bin _time as MyDate span=1d
| table country, MyDate, count 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Sounds like currently it's presenting as minutes or something.  &lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2017 14:50:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-a-bubble-chart-with-dates-shown/m-p/278130#M83952</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-02-06T14:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to create a bubble chart with dates shown on X axis?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-a-bubble-chart-with-dates-shown/m-p/278131#M83953</link>
      <description>&lt;P&gt;Actually,  by definition of a bubble chart, it's three - X value, Y value, and size of the bubble.  The splunk bubble chart also allows a fourth, using a different color for different series. &lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/6.5.2/Viz/BubbleChart"&gt;https://docs.splunk.com/Documentation/Splunk/6.5.2/Viz/BubbleChart&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2017 14:53:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-a-bubble-chart-with-dates-shown/m-p/278131#M83953</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-02-06T14:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to create a bubble chart with dates shown on X axis?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-a-bubble-chart-with-dates-shown/m-p/278132#M83954</link>
      <description>&lt;P&gt;Hi DalJeanis - this gets me a bit closer; my _time Axis (now MyDate) now shows epoch time&lt;/P&gt;

&lt;P&gt;...the only problem is if I use a convert or eval time=strftime to make the date more readable the info is no longer passed to the chart.&lt;/P&gt;

&lt;P&gt;The date is showing correctly in the data under the chart but if I hover over a bubble inside the chart MyDate shows as 0&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2017 15:17:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-a-bubble-chart-with-dates-shown/m-p/278132#M83954</guid>
      <dc:creator>andyp54</dc:creator>
      <dc:date>2017-02-06T15:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to create a bubble chart with dates shown on X axis?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-a-bubble-chart-with-dates-shown/m-p/278133#M83955</link>
      <description>&lt;P&gt;what happens if you do this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | bin _time span=1d
 | table country, _time, count 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 06 Feb 2017 22:34:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-a-bubble-chart-with-dates-shown/m-p/278133#M83955</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-02-06T22:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to create a bubble chart with dates shown on X axis?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-a-bubble-chart-with-dates-shown/m-p/278134#M83956</link>
      <description>&lt;P&gt;If I change it then it puts me back to my X axis showing 1, 2, 3 , 4 rather than epoch time....&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 10:03:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-a-bubble-chart-with-dates-shown/m-p/278134#M83956</guid>
      <dc:creator>andyp54</dc:creator>
      <dc:date>2017-02-07T10:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to create a bubble chart with dates shown on X axis?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-a-bubble-chart-with-dates-shown/m-p/278135#M83957</link>
      <description>&lt;P&gt;I'm going to assume it's got something to do with the bubble chart needing a stats command to generate the fields it uses.....that must mess up whatever exists in the _time field so it doesn't display. I'll play some more but this may be one of those "you can't do it" moments....&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 10:32:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-a-bubble-chart-with-dates-shown/m-p/278135#M83957</guid>
      <dc:creator>andyp54</dc:creator>
      <dc:date>2017-02-07T10:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to create a bubble chart with dates shown on X axis?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-a-bubble-chart-with-dates-shown/m-p/278136#M83958</link>
      <description>&lt;P&gt;If you add an ID to the panel "bubblechart", then add this as a script to the dashboard, it'll re-write the epoch time strings to a date format. Verified working on Splunk 6.4.4.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;require(['jquery', 'splunkjs/mvc/simplexml/ready!'], function($) {
        setTimeout(function(){
                $('#bubblechart').find('.highcharts-xaxis-labels').children('text').each(function(){
                        var epochtime = parseInt($(this).html().replace(/\,/g,''),10);
                        var objDate = new Date(epochtime*1000);
                        $(this).html(objDate.toLocaleDateString('en-US'));
                });
        }, 1000);
});
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 07 Jun 2017 21:43:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-a-bubble-chart-with-dates-shown/m-p/278136#M83958</guid>
      <dc:creator>paulstout</dc:creator>
      <dc:date>2017-06-07T21:43:08Z</dc:date>
    </item>
  </channel>
</rss>

