<?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 can I use sparkline for single value visualization? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-use-sparkline-for-single-value-visualization/m-p/351566#M64467</link>
    <description>&lt;P&gt;@tamduong16, as you can see Trend Indicator in Single Value is based on timechart command which generates stats for time spans. If you do not specify &lt;CODE&gt;span&lt;/CODE&gt; in the timechart command it defaults on its own based on earliest and latest time provided. In this case span is set to daily or 1 day i.e. &lt;CODE&gt;span="1d"&lt;/CODE&gt; automatically.&lt;/P&gt;

&lt;P&gt;If you want to show monthly trending simplest change you can do is to set span to 1 month i.e. &lt;CODE&gt;span="1mon"&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;YourBaseSearch&amp;gt;
| timechart span="1mon" count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Within Single value there are few things to notice. &lt;BR /&gt;
1) Single value represent the stats for latest bucket. In this case current month count.&lt;BR /&gt;
2) Based on Compare to time, show Upward and Downward trend and also show difference in volume as compared to volume at previous time. By default it is auto which means current volume (i.e. last) gets compared to one prior volume (i.e. second last) in the series. In this case current month volume compared to previous month. COmpared to time interval can be configured via Simple XML Configuration (by default it is auto).&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;option name="trendInterval"&amp;gt;auto&amp;lt;/option&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Prior to Splunk Enterprise 6.4 what was Single Value has changed a lot a and become quite prominent visualization option with the introduction of trending, color by trending and most recently trellis. So it would be best if you try to read and understand how it works and what it interprets.&lt;/P&gt;

&lt;P&gt;Splunk Docs for Single Value Color By Trend: &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Viz/SingleValueFormatting#Color_by_trend"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Viz/SingleValueFormatting#Color_by_trend&lt;/A&gt;&lt;BR /&gt;
Splunk Simple XML Reference for Single Value: &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Viz/PanelreferenceforSimplifiedXML#single_value"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Viz/PanelreferenceforSimplifiedXML#single_value&lt;/A&gt;&lt;BR /&gt;
Splunk Dashboard Examples App with Single Value examples: &lt;A href="https://splunkbase.splunk.com/app/1603/"&gt;https://splunkbase.splunk.com/app/1603/&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 03 Nov 2017 20:44:07 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2017-11-03T20:44:07Z</dc:date>
    <item>
      <title>How can I use sparkline for single value visualization?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-use-sparkline-for-single-value-visualization/m-p/351563#M64464</link>
      <description>&lt;P&gt;I want to display the total event count for the current month and then compare it to the total event for the last month and the up or down arrow to be the difference between this month event and last month along with the number of the count below it. Is it possible that this could be done with Splunk? 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/3803iEE6910494D4BDFE3/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;I have this search but I don't know what would come next since everything I try after that failed:&lt;/P&gt;

&lt;P&gt;index="monthlycdr" earliest=-2mon@mon latest=@mon &lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2017 19:29:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-use-sparkline-for-single-value-visualization/m-p/351563#M64464</guid>
      <dc:creator>tamduong16</dc:creator>
      <dc:date>2017-11-03T19:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use sparkline for single value visualization?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-use-sparkline-for-single-value-visualization/m-p/351564#M64465</link>
      <description>&lt;P&gt;HI &lt;BR /&gt;
Single view with a trend is generated with &lt;CODE&gt;timechart&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;So can you please try below search?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="monthlycdr" earliest=-2mon@mon latest=@mon | timechart count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can easily create it with search visualization.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2017 19:37:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-use-sparkline-for-single-value-visualization/m-p/351564#M64465</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2017-11-03T19:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use sparkline for single value visualization?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-use-sparkline-for-single-value-visualization/m-p/351565#M64466</link>
      <description>&lt;P&gt;Hi Kamlesh, Thanks for the reply. I tried it but it actually gives me a weird number, which I don't understand much. I really just want splunk to count the number of events for the current month and display it as the big number there. I got this part already but I can not figure out how to compare it to last month total events and have the arrow to tell me if it increases or decreases compared to last month. Any ideas? &lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2017 19:56:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-use-sparkline-for-single-value-visualization/m-p/351565#M64466</guid>
      <dc:creator>tamduong16</dc:creator>
      <dc:date>2017-11-03T19:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use sparkline for single value visualization?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-use-sparkline-for-single-value-visualization/m-p/351566#M64467</link>
      <description>&lt;P&gt;@tamduong16, as you can see Trend Indicator in Single Value is based on timechart command which generates stats for time spans. If you do not specify &lt;CODE&gt;span&lt;/CODE&gt; in the timechart command it defaults on its own based on earliest and latest time provided. In this case span is set to daily or 1 day i.e. &lt;CODE&gt;span="1d"&lt;/CODE&gt; automatically.&lt;/P&gt;

&lt;P&gt;If you want to show monthly trending simplest change you can do is to set span to 1 month i.e. &lt;CODE&gt;span="1mon"&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;YourBaseSearch&amp;gt;
| timechart span="1mon" count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Within Single value there are few things to notice. &lt;BR /&gt;
1) Single value represent the stats for latest bucket. In this case current month count.&lt;BR /&gt;
2) Based on Compare to time, show Upward and Downward trend and also show difference in volume as compared to volume at previous time. By default it is auto which means current volume (i.e. last) gets compared to one prior volume (i.e. second last) in the series. In this case current month volume compared to previous month. COmpared to time interval can be configured via Simple XML Configuration (by default it is auto).&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;option name="trendInterval"&amp;gt;auto&amp;lt;/option&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Prior to Splunk Enterprise 6.4 what was Single Value has changed a lot a and become quite prominent visualization option with the introduction of trending, color by trending and most recently trellis. So it would be best if you try to read and understand how it works and what it interprets.&lt;/P&gt;

&lt;P&gt;Splunk Docs for Single Value Color By Trend: &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Viz/SingleValueFormatting#Color_by_trend"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Viz/SingleValueFormatting#Color_by_trend&lt;/A&gt;&lt;BR /&gt;
Splunk Simple XML Reference for Single Value: &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Viz/PanelreferenceforSimplifiedXML#single_value"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Viz/PanelreferenceforSimplifiedXML#single_value&lt;/A&gt;&lt;BR /&gt;
Splunk Dashboard Examples App with Single Value examples: &lt;A href="https://splunkbase.splunk.com/app/1603/"&gt;https://splunkbase.splunk.com/app/1603/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2017 20:44:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-use-sparkline-for-single-value-visualization/m-p/351566#M64467</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-11-03T20:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use sparkline for single value visualization?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-use-sparkline-for-single-value-visualization/m-p/351567#M64468</link>
      <description>&lt;P&gt;@niketnilay, I found my answer base on your comment. Could you please post your comment to the answer section so I could accept it. Thank you so much&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2017 21:21:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-use-sparkline-for-single-value-visualization/m-p/351567#M64468</guid>
      <dc:creator>tamduong16</dc:creator>
      <dc:date>2017-11-06T21:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use sparkline for single value visualization?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-use-sparkline-for-single-value-visualization/m-p/351568#M64469</link>
      <description>&lt;P&gt;@tamduong16, I have converted to answer please accept.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2017 22:33:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-use-sparkline-for-single-value-visualization/m-p/351568#M64469</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-11-06T22:33:27Z</dc:date>
    </item>
  </channel>
</rss>

