<?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 bug ? in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Sparkline-bug/m-p/56727#M3335</link>
    <description>&lt;P&gt;Thanks for adding support for sparklines.  I'll check it out when the new release is available.&lt;/P&gt;</description>
    <pubDate>Wed, 18 Sep 2013 17:09:18 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2013-09-18T17:09:18Z</dc:date>
    <item>
      <title>Sparkline bug ?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Sparkline-bug/m-p/56725#M3333</link>
      <description>&lt;P&gt;When I run this search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal NOT "SSL Error*" AND (log_level="WARN" OR log_level="ERROR") AND 
    ("Login failed" OR "Configuration error" OR "Access is denied" OR "ICMA" OR "tenablesc" OR "odata") | 
    stats sparkline(count) AS Trend, count(_time) AS Occurs by log_level,message | where Occurs &amp;gt; 9 |
    eval level=case(log_level="ERROR",1,log_level="WARN",2,log_level="INFO",3) | sort level, -Occurs | 
    rename log_level AS Level, message AS Message | fields level, Level, Trend, Occurs, Message
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I get these results:&lt;/P&gt;

&lt;P&gt;&lt;IMG src="http://splunk-base.splunk.com//storage/sparkline_2.jpg" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;However, when I try to do the same thing using this Advanced XML:&lt;/P&gt;

&lt;P&gt;&amp;lt;module name="HiddenSearch" layoutPanel="panel_row1_col1" autoRun="True"&amp;gt;&lt;BR /&gt;
&amp;lt;param name="search"&amp;gt;&amp;lt;![CDATA[index=_internal NOT "SSL Error*" AND (log_level="WARN" OR log_level="ERROR") AND &lt;BR /&gt;
("Login failed" OR "Configuration error" OR "Access is denied" OR "ICMA" OR "tenablesc" OR "odata") | &lt;BR /&gt;
stats sparkline(count) AS Trend, count(_time) AS Occurs by log_level,message | where Occurs &amp;gt; 9 |&lt;BR /&gt;
eval level=case(log_level="ERROR",1,log_level="WARN",2,log_level="INFO",3) | sort level, -Occurs | &lt;BR /&gt;
rename log_level AS Level, message AS Message | fields level, Level, Trend, Occurs, Message]]&amp;gt;&amp;lt;/param&amp;gt;&lt;BR /&gt;
&amp;lt;module name="JobProgressIndicator"&amp;gt;&amp;lt;/module&amp;gt;&lt;BR /&gt;
&amp;lt;module name="Pager"&amp;gt;&lt;BR /&gt;
&lt;OBJECT&gt;&lt;PARAM name="entityName" /&gt;results&lt;BR /&gt;
&amp;lt;module name="Table"&amp;gt;&lt;BR /&gt;
&amp;lt;param name="hiddenFields"&amp;gt;"level"&amp;lt;/param&amp;gt;&lt;BR /&gt;
&amp;lt;param name="name"&amp;gt;click&amp;lt;/param&amp;gt;&lt;BR /&gt;
&amp;lt;module name="Redirector"&amp;gt;&lt;BR /&gt;
&amp;lt;param name="url"&amp;gt;flashtimeline&amp;lt;/param&amp;gt;&lt;BR /&gt;
&amp;lt;param name="arg.q"&amp;gt;search index=_internal AND "$click.fields.Message$"&amp;lt;/param&amp;gt;&lt;BR /&gt;
&amp;lt;param name="arg.earliest"&amp;gt;$search.timeRange.earliest$&amp;lt;/param&amp;gt;&lt;BR /&gt;
&amp;lt;param name="arg.latest"&amp;gt;$search.timeRange.latest$&amp;lt;/param&amp;gt;&lt;BR /&gt;
&amp;lt;/module&amp;gt;&lt;BR /&gt;
&amp;lt;/module&amp;gt;&lt;BR /&gt;
&amp;lt;/module&amp;gt;&lt;BR /&gt;
&amp;lt;/module&amp;gt;&lt;/OBJECT&gt;&lt;/P&gt;

&lt;P&gt;(Please forgive the poor formatting.  I couldn't get the XML to display properly as code.)&lt;/P&gt;

&lt;P&gt;I get these results:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Level   Trend   Occurs  Message
ERROR
    ##__SPARKLINE__##
0
4
1
0
5
0
5
0
5
0
5
0
0
5
0
5
0
5
0
1
4
0
5
0
5
0
5
0
4
1
0
5
0
6
0
5
0
0
5
0
5
0
5
0
1
4
0
5
0
    106
    Login failed: Username and password are required
ERROR
    ##__SPARKLINE__##
0
2
1
0
3
0
3
0
3
0
3
0
0
3
0
3
0
3
0
1
2
0
3
0
3
0
3
0
3
0
0
3
0
6
0
3
0
0
3
0
3
0
3
0
0
3
0
3
0
    66
    Login failed. Incorrect login for user: admin
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This looks like a bug in Sideview Utils.  How can I get the dashboard to look like the search?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:43:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Sparkline-bug/m-p/56725#M3333</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-09-28T14:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: Sparkline bug ?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Sparkline-bug/m-p/56726#M3334</link>
      <description>&lt;P&gt;The sparkline() function in stats outputs a weird little multivalue format exactly as you see it in the Table.   Splunk's SimpleResultsTable then picks up on that format and renders a little sparkline.   You can actually do weird things by constructing the multivalue format yourself, and indeed the SimpleResultsTable can be tricked into render little sparklines. &lt;/P&gt;

&lt;P&gt;The problem in the Sideview Table module was just that it didn't implement this convention.  &lt;/P&gt;

&lt;P&gt;However it only took about 30 minutes to implement and write a testcase, and it'll now go out in the next release of Sideview Utils.  (the bulk of the sparkline feature is already implemented as a jquery plugin, and since that plugin already ships in core Splunk, this really was dead easy)&lt;/P&gt;

&lt;P&gt;Thanks for reporting the gap in functionality.  Again look for 2.6.5 when it comes out in the next few days.  And if you're not on it already, there's a mailing list that just announces new Sideview Utils releases.   &lt;A href="http://sideviewapps.com/apps/sideview-utils/mailing-list/"&gt;http://sideviewapps.com/apps/sideview-utils/mailing-list/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2013 05:37:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Sparkline-bug/m-p/56726#M3334</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2013-09-18T05:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: Sparkline bug ?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Sparkline-bug/m-p/56727#M3335</link>
      <description>&lt;P&gt;Thanks for adding support for sparklines.  I'll check it out when the new release is available.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2013 17:09:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Sparkline-bug/m-p/56727#M3335</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2013-09-18T17:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: Sparkline bug ?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Sparkline-bug/m-p/56728#M3336</link>
      <description>&lt;P&gt;2.6.5 released today and the Table module now has full support for the &lt;CODE&gt;stats sparkline(count)&lt;/CODE&gt; and all other sparkline permutations.   &lt;A href="http://sideviewapps.com/apps/sideview-utils"&gt;http://sideviewapps.com/apps/sideview-utils&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2013 06:56:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Sparkline-bug/m-p/56728#M3336</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2013-10-01T06:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: Sparkline bug ?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Sparkline-bug/m-p/56729#M3337</link>
      <description>&lt;P&gt;Sideview version 2.6.5 fixed the problem.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2013 12:14:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Sparkline-bug/m-p/56729#M3337</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2013-10-08T12:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: Sparkline bug ?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Sparkline-bug/m-p/56730#M3338</link>
      <description>&lt;P&gt;Thanks for the tip that sparklines are multivalued fields. It helped me figure out that to preserve an already-created sparkline in a table in further statistical searches, you need to use stats list(YourSparklineField).&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2015 15:57:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Sparkline-bug/m-p/56730#M3338</guid>
      <dc:creator>cphair</dc:creator>
      <dc:date>2015-08-11T15:57:02Z</dc:date>
    </item>
  </channel>
</rss>

