<?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: Any way to use _time with a bubble or scatter chart? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Any-way-to-use-time-with-a-bubble-or-scatter-chart/m-p/226219#M66698</link>
    <description>&lt;P&gt;Using the  seriesColors option you don't need to know the names of your series ahead of time. So you can create pairs of colors instead.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;option name="charting.seriesColors"&amp;gt;[0x1e93c6, 0x1e93c6, 0xf2b827, 0xf2b827, 0xd6563c, 0xd6563c, 0x6a5c9e, 0x6a5c9e&amp;lt;/option&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here is a full example -&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;456278&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;chart&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index="456278" | timechart span=7d max(state) as max, min(state) as min by series format="$$VAL$$ $$AGG$$"&amp;lt;/query&amp;gt;
          &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="charting.axisLabelsX.majorLabelStyle.overflowMode"&amp;gt;ellipsisNone&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisLabelsX.majorLabelStyle.rotation"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisTitleX.visibility"&amp;gt;visible&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisTitleY.visibility"&amp;gt;visible&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisTitleY2.visibility"&amp;gt;visible&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisX.scale"&amp;gt;linear&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisY.scale"&amp;gt;linear&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisY2.enabled"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisY2.scale"&amp;gt;inherit&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart"&amp;gt;line&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.bubbleMaximumSize"&amp;gt;50&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.bubbleMinimumSize"&amp;gt;10&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.bubbleSizeBy"&amp;gt;area&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.nullValueMode"&amp;gt;gaps&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.showDataLabels"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.sliceCollapsingThreshold"&amp;gt;0.01&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.stackMode"&amp;gt;default&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.style"&amp;gt;shiny&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.drilldown"&amp;gt;all&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.layout.splitSeries"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.layout.splitSeries.allowIndependentYRanges"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.legend.labelStyle.overflowMode"&amp;gt;ellipsisMiddle&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.legend.placement"&amp;gt;right&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.seriesColors"&amp;gt;[0x1e93c6, 0x1e93c6, 0xf2b827, 0xf2b827, 0xd6563c, 0xd6563c, 0x6a5c9e, 0x6a5c9e&amp;lt;/option&amp;gt;
      &amp;lt;/chart&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Also note the use of double $ ($$) in the dashboard as the $ needs to be escaped.&lt;/P&gt;

&lt;P&gt;So the above works with the standard charting options within Splunk. &lt;/P&gt;

&lt;P&gt;Another alternative would be to build a custom vizualization but this would likely take a bit of time to create.&lt;/P&gt;</description>
    <pubDate>Mon, 03 Oct 2016 07:15:19 GMT</pubDate>
    <dc:creator>msivill_splunk</dc:creator>
    <dc:date>2016-10-03T07:15:19Z</dc:date>
    <item>
      <title>Any way to use _time with a bubble or scatter chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Any-way-to-use-time-with-a-bubble-or-scatter-chart/m-p/226214#M66693</link>
      <description>&lt;P&gt;I need to show changes of a numeric state over time, of multiple series. Several state changes may happen very quickly, which a single aggregation in timechart will just swallow. Ideally I'd like to visualize all of the unique values that happened for a given series in a given time slice.&lt;/P&gt;

&lt;P&gt;A scatter chart seems to make sense, but it doesn't appear to support _time for the X-axis in any sane way. Hopefully I'm just missing some setting?&lt;/P&gt;

&lt;P&gt;What I've tried is essentially:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;search... | bucket bins=500 _time | rename _time as t | table series t state_value
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You end up with either the epoch as the x, or 0-(max(_time)-min(_time)) if you use _time. Formatting the date string doesn't seem to work, either.&lt;/P&gt;

&lt;P&gt;Another approach that would be really cool would be the ability to do this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;search... | timechart values(state_value) by series
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Even if this just showed the max and min in the slice in the same line, that'd be acceptable.&lt;/P&gt;

&lt;P&gt;I see from an ancient question that timechart used to support values(foo), but now it doesn't appear to actually draw anything if there are multiple values returned in a particular time bucket. &lt;/P&gt;

&lt;P&gt;Thoughts?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:14:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Any-way-to-use-time-with-a-bubble-or-scatter-chart/m-p/226214#M66693</guid>
      <dc:creator>vbumgarner</dc:creator>
      <dc:date>2020-09-29T11:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: Any way to use _time with a bubble or scatter chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Any-way-to-use-time-with-a-bubble-or-scatter-chart/m-p/226215#M66694</link>
      <description>&lt;P&gt;The best I could do was to plot max/min for each series on a line chart using&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="456278" | timechart span=7d max(state) as max, min(state) as min by series
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You could also change the colourings on the max/min series pair lines so they matched up - &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.0/Viz/ChartConfigurationReference#General_chart_properties" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.0/Viz/ChartConfigurationReference#General_chart_properties&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:15:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Any-way-to-use-time-with-a-bubble-or-scatter-chart/m-p/226215#M66694</guid>
      <dc:creator>msivill_splunk</dc:creator>
      <dc:date>2020-09-29T11:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: Any way to use _time with a bubble or scatter chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Any-way-to-use-time-with-a-bubble-or-scatter-chart/m-p/226216#M66695</link>
      <description>&lt;P&gt;Using&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="456278" | timechart span=7d max(state) as max, min(state) as min by series format="$VAL$ $AGG$"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;with format will place max/min legends next to each other, for easier comparison between values. &lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2016 13:59:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Any-way-to-use-time-with-a-bubble-or-scatter-chart/m-p/226216#M66695</guid>
      <dc:creator>msivill_splunk</dc:creator>
      <dc:date>2016-09-30T13:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: Any way to use _time with a bubble or scatter chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Any-way-to-use-time-with-a-bubble-or-scatter-chart/m-p/226217#M66696</link>
      <description>&lt;P&gt;That does get the legend items together, but the lines are pretty unreadable. If I knew what the series names could be, I could specify the colors, but in this case, of course they're dynamic. I suppose I could make a long list of colors, repeating the colors. Hmm.&lt;/P&gt;

&lt;P&gt;What would be the absolute best would be something like this:&lt;/P&gt;

&lt;P&gt;scatter, or line chart with points but no lines:&lt;BR /&gt;
  index="456278" | timechart span=7d values(state) as values by series&lt;BR /&gt;
with an overlaid line:&lt;BR /&gt;
  index="456278" | timechart span=7d last(state) as last by series | filldown&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2016 22:34:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Any-way-to-use-time-with-a-bubble-or-scatter-chart/m-p/226217#M66696</guid>
      <dc:creator>vbumgarner</dc:creator>
      <dc:date>2016-09-30T22:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: Any way to use _time with a bubble or scatter chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Any-way-to-use-time-with-a-bubble-or-scatter-chart/m-p/226218#M66697</link>
      <description>&lt;P&gt;Not sure if this helps,  but you can make a new field just concatenating your state and your series values.   Then have timechart split by that.   My first thought reading this also,  was do break it into two problems - merely chart the dc(state) in your timechart, and on the drilldown click,   display to the user what the actual values were.  &lt;/P&gt;

&lt;P&gt;Also one bizarre workaround that can give a little mileage would be a) to go into the formatting and tell it to not connect lines between gaps.   b) use SPL shenanigans to interpolate a row with the right _time value in between every existing row.  But have all the other fields blank on these interpolated rows. In this way a line chart becomes effectively a scatter chart.  =/&lt;/P&gt;

&lt;P&gt;Here's a concocted search result I was using to play around with the problem.&lt;/P&gt;

&lt;P&gt;| makeresults count=200 | eval _time=now() | streamstats count | eval _time=_time+60*count | eval mod5=count - 5*floor(count/5) | eval mod11=count - 11*floor(count/11) | eval combined=mod5 + " - " + mod11 &lt;/P&gt;

&lt;P&gt;and here's the same search with a timechart splitting things out. &lt;/P&gt;

&lt;P&gt;| makeresults count=200 | eval _time=now() | streamstats count | eval _time=_time+60*count | eval mod5=count - 5*floor(count/5) | eval mod11=count - 11*floor(count/11) | eval combined=mod5 + " - " + mod11  | timechart count by combined&lt;/P&gt;

&lt;P&gt;hope that helps.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:15:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Any-way-to-use-time-with-a-bubble-or-scatter-chart/m-p/226218#M66697</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2020-09-29T11:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: Any way to use _time with a bubble or scatter chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Any-way-to-use-time-with-a-bubble-or-scatter-chart/m-p/226219#M66698</link>
      <description>&lt;P&gt;Using the  seriesColors option you don't need to know the names of your series ahead of time. So you can create pairs of colors instead.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;option name="charting.seriesColors"&amp;gt;[0x1e93c6, 0x1e93c6, 0xf2b827, 0xf2b827, 0xd6563c, 0xd6563c, 0x6a5c9e, 0x6a5c9e&amp;lt;/option&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here is a full example -&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;456278&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;chart&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index="456278" | timechart span=7d max(state) as max, min(state) as min by series format="$$VAL$$ $$AGG$$"&amp;lt;/query&amp;gt;
          &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="charting.axisLabelsX.majorLabelStyle.overflowMode"&amp;gt;ellipsisNone&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisLabelsX.majorLabelStyle.rotation"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisTitleX.visibility"&amp;gt;visible&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisTitleY.visibility"&amp;gt;visible&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisTitleY2.visibility"&amp;gt;visible&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisX.scale"&amp;gt;linear&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisY.scale"&amp;gt;linear&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisY2.enabled"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisY2.scale"&amp;gt;inherit&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart"&amp;gt;line&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.bubbleMaximumSize"&amp;gt;50&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.bubbleMinimumSize"&amp;gt;10&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.bubbleSizeBy"&amp;gt;area&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.nullValueMode"&amp;gt;gaps&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.showDataLabels"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.sliceCollapsingThreshold"&amp;gt;0.01&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.stackMode"&amp;gt;default&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.style"&amp;gt;shiny&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.drilldown"&amp;gt;all&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.layout.splitSeries"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.layout.splitSeries.allowIndependentYRanges"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.legend.labelStyle.overflowMode"&amp;gt;ellipsisMiddle&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.legend.placement"&amp;gt;right&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.seriesColors"&amp;gt;[0x1e93c6, 0x1e93c6, 0xf2b827, 0xf2b827, 0xd6563c, 0xd6563c, 0x6a5c9e, 0x6a5c9e&amp;lt;/option&amp;gt;
      &amp;lt;/chart&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Also note the use of double $ ($$) in the dashboard as the $ needs to be escaped.&lt;/P&gt;

&lt;P&gt;So the above works with the standard charting options within Splunk. &lt;/P&gt;

&lt;P&gt;Another alternative would be to build a custom vizualization but this would likely take a bit of time to create.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2016 07:15:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Any-way-to-use-time-with-a-bubble-or-scatter-chart/m-p/226219#M66698</guid>
      <dc:creator>msivill_splunk</dc:creator>
      <dc:date>2016-10-03T07:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: Any way to use _time with a bubble or scatter chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Any-way-to-use-time-with-a-bubble-or-scatter-chart/m-p/226220#M66699</link>
      <description>&lt;P&gt;Another option for the visualization that uses the min/max value query&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="456278" | timechart span=7d max(state) as max, min(state) as min by series format="$VAL$ $AGG$"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is the "Horizon Chart - Custom Visualization" on Splunkbase &lt;A href="https://splunkbase.splunk.com/app/3117/"&gt;https://splunkbase.splunk.com/app/3117/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;This has the advantage of being able to pull a line across the charts that shows the values. So you can see the min/max for a certain time period.&lt;/P&gt;

&lt;P&gt;So you end up with something a bit 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/1950i4ACD5E5DAD381224/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, 03 Oct 2016 12:45:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Any-way-to-use-time-with-a-bubble-or-scatter-chart/m-p/226220#M66699</guid>
      <dc:creator>msivill_splunk</dc:creator>
      <dc:date>2016-10-03T12:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: Any way to use _time with a bubble or scatter chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Any-way-to-use-time-with-a-bubble-or-scatter-chart/m-p/226221#M66700</link>
      <description>&lt;P&gt;Hey man, long time no see.&lt;/P&gt;

&lt;P&gt;That would show every point, for sure, but the coloring gets even worse, since I wouldn't actually know how many series would be there.&lt;/P&gt;

&lt;P&gt;You're possibly right that drawing this in two steps is actually the best option.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2016 16:38:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Any-way-to-use-time-with-a-bubble-or-scatter-chart/m-p/226221#M66700</guid>
      <dc:creator>vbumgarner</dc:creator>
      <dc:date>2016-10-03T16:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: Any way to use _time with a bubble or scatter chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Any-way-to-use-time-with-a-bubble-or-scatter-chart/m-p/226222#M66701</link>
      <description>&lt;P&gt;That's interesting. Downloading...&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2016 16:39:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Any-way-to-use-time-with-a-bubble-or-scatter-chart/m-p/226222#M66701</guid>
      <dc:creator>vbumgarner</dc:creator>
      <dc:date>2016-10-03T16:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: Any way to use _time with a bubble or scatter chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Any-way-to-use-time-with-a-bubble-or-scatter-chart/m-p/226223#M66702</link>
      <description>&lt;P&gt;Yep, that was my last experiment. I actually ended tripling the colors, and drawing min max and last, then using filldown on last*. This draws the min and max as points, and the last value in the time slice draws off to the right.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2016 16:40:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Any-way-to-use-time-with-a-bubble-or-scatter-chart/m-p/226223#M66702</guid>
      <dc:creator>vbumgarner</dc:creator>
      <dc:date>2016-10-03T16:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: Any way to use _time with a bubble or scatter chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Any-way-to-use-time-with-a-bubble-or-scatter-chart/m-p/226224#M66703</link>
      <description>&lt;P&gt;o/  ikr.  Nice to see you too. &lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2016 16:53:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Any-way-to-use-time-with-a-bubble-or-scatter-chart/m-p/226224#M66703</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2016-10-03T16:53:06Z</dc:date>
    </item>
  </channel>
</rss>

