<?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: Sparkline maximum data points? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Sparkline-maximum-data-points/m-p/216028#M13479</link>
    <description>&lt;P&gt;You can generate sparkline charts with the tstats command &lt;STRONG&gt;only&lt;/STRONG&gt; if you specify the _time field in the BY clause and use the stats command to generate the actual sparkline. &lt;/P&gt;

&lt;P&gt;For example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats count from datamodel=Authentication.Authentication BY _time, Authentication.src span=1h | stats sparkline(sum(count),1h) AS sparkline, sum(count) as count BY Authentication.src
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Also, I don't know if the limit suggested is accurate. When you run the following command, you get many more data points than 101 which are charted:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal | chart sparkline count by sourcetype
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 30 Oct 2017 22:14:38 GMT</pubDate>
    <dc:creator>lstewart_splunk</dc:creator>
    <dc:date>2017-10-30T22:14:38Z</dc:date>
    <item>
      <title>Sparkline maximum data points?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Sparkline-maximum-data-points/m-p/216026#M13477</link>
      <description>&lt;P&gt;I recently noticed that my sparklines may appear to lose data when I make the resolution too fine.  For example over the course of a days data, sparkline(sum(count),1h) as countTrend1h will represent the trend OK, but sparkline(sum(count),5m) as countTrend5m will show only part of the results.  I think that this is because at a resolution of 1hour, I have only 24 datapoints, while a resolution of 5m has 288.  &lt;/P&gt;

&lt;P&gt;What is the maximum number of datapoints that Splunk can reasonable handler in a sparkline?  Also, is there a way to deal with it if I inadvertently exceed that number of data points?  &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/2284i8C42B6E00825D4D3/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>Thu, 29 Dec 2016 22:13:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Sparkline-maximum-data-points/m-p/216026#M13477</guid>
      <dc:creator>MonkeyK</dc:creator>
      <dc:date>2016-12-29T22:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: Sparkline maximum data points?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Sparkline-maximum-data-points/m-p/216027#M13478</link>
      <description>&lt;P&gt;Sparklines can have 101 data points maximum.&lt;BR /&gt;
In fact, sparkline generates a multivalue field with a special "header", something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;##__SPARKLINE__##,113,322,275,334,314,284,...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So you can use every mv.... command on these fields, e.g. mvcount(countTrend5m)&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2017 14:10:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Sparkline-maximum-data-points/m-p/216027#M13478</guid>
      <dc:creator>gergelybata</dc:creator>
      <dc:date>2017-07-04T14:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: Sparkline maximum data points?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Sparkline-maximum-data-points/m-p/216028#M13479</link>
      <description>&lt;P&gt;You can generate sparkline charts with the tstats command &lt;STRONG&gt;only&lt;/STRONG&gt; if you specify the _time field in the BY clause and use the stats command to generate the actual sparkline. &lt;/P&gt;

&lt;P&gt;For example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats count from datamodel=Authentication.Authentication BY _time, Authentication.src span=1h | stats sparkline(sum(count),1h) AS sparkline, sum(count) as count BY Authentication.src
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Also, I don't know if the limit suggested is accurate. When you run the following command, you get many more data points than 101 which are charted:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal | chart sparkline count by sourcetype
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 30 Oct 2017 22:14:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Sparkline-maximum-data-points/m-p/216028#M13479</guid>
      <dc:creator>lstewart_splunk</dc:creator>
      <dc:date>2017-10-30T22:14:38Z</dc:date>
    </item>
  </channel>
</rss>

