<?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 Add second value to Single Value panel in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Add-second-value-to-Single-Value-panel/m-p/460491#M129926</link>
    <description>&lt;P&gt;We've setup a new Splunk dashboard and I'm looking to improve the trend graphs/panels.&lt;/P&gt;

&lt;P&gt;We now have three panels each telling us something about a specific type of event. These panels are shown in the screenshot below:&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://i.stack.imgur.com/egNT2.png" alt="Three panels" /&gt;&lt;/P&gt;

&lt;P&gt;Top to bottom, &lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;the first shows the number of events in the current rolling period (of 30 days).&lt;/LI&gt;
&lt;LI&gt;The second shows a trend graph of the number of events every day over the past 3 months.&lt;/LI&gt;
&lt;LI&gt;The third and last shows the number of events in this year to the current data (YTD).&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;I'd like to clean this up and combine it into one panel. Ideally it would look something like:&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://i.stack.imgur.com/a7bPQ.png" alt="Data combined into panel" /&gt;&lt;/P&gt;

&lt;P&gt;I've been messing with CSS files, but that is not a sustainable solution. &lt;BR /&gt;
Also I've found the Splunk documentation on how to &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.1/Viz/SingleValueGenerate"&gt;Generate a single value&lt;/A&gt;. This give me part of what I'm looking for. But this lacks the Year to Data value and I need the trend line to be more prominent.&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://i.stack.imgur.com/aYnaR.png" alt="From Splunk, single value with trend but without YTD" /&gt;&lt;/P&gt;

&lt;P&gt;Any suggestions to how to make this work?&lt;/P&gt;</description>
    <pubDate>Fri, 23 Aug 2019 12:52:40 GMT</pubDate>
    <dc:creator>pimoa</dc:creator>
    <dc:date>2019-08-23T12:52:40Z</dc:date>
    <item>
      <title>Add second value to Single Value panel</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Add-second-value-to-Single-Value-panel/m-p/460491#M129926</link>
      <description>&lt;P&gt;We've setup a new Splunk dashboard and I'm looking to improve the trend graphs/panels.&lt;/P&gt;

&lt;P&gt;We now have three panels each telling us something about a specific type of event. These panels are shown in the screenshot below:&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://i.stack.imgur.com/egNT2.png" alt="Three panels" /&gt;&lt;/P&gt;

&lt;P&gt;Top to bottom, &lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;the first shows the number of events in the current rolling period (of 30 days).&lt;/LI&gt;
&lt;LI&gt;The second shows a trend graph of the number of events every day over the past 3 months.&lt;/LI&gt;
&lt;LI&gt;The third and last shows the number of events in this year to the current data (YTD).&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;I'd like to clean this up and combine it into one panel. Ideally it would look something like:&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://i.stack.imgur.com/a7bPQ.png" alt="Data combined into panel" /&gt;&lt;/P&gt;

&lt;P&gt;I've been messing with CSS files, but that is not a sustainable solution. &lt;BR /&gt;
Also I've found the Splunk documentation on how to &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.1/Viz/SingleValueGenerate"&gt;Generate a single value&lt;/A&gt;. This give me part of what I'm looking for. But this lacks the Year to Data value and I need the trend line to be more prominent.&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://i.stack.imgur.com/aYnaR.png" alt="From Splunk, single value with trend but without YTD" /&gt;&lt;/P&gt;

&lt;P&gt;Any suggestions to how to make this work?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2019 12:52:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Add-second-value-to-Single-Value-panel/m-p/460491#M129926</guid>
      <dc:creator>pimoa</dc:creator>
      <dc:date>2019-08-23T12:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: Add second value to Single Value panel</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Add-second-value-to-Single-Value-panel/m-p/460492#M129927</link>
      <description>&lt;P&gt;To address the title of this question, a Single Value visualization cannot contain more than 1 value (not counting the trend and sparkline).&lt;/P&gt;

&lt;P&gt;Have you considered putting your three panels on the same row so they're next to each other?&lt;/P&gt;

&lt;P&gt;Another option is to edit the dashboard source so the visualizations are in one panel.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2019 15:51:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Add-second-value-to-Single-Value-panel/m-p/460492#M129927</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-08-23T15:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: Add second value to Single Value panel</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Add-second-value-to-Single-Value-panel/m-p/460493#M129928</link>
      <description>&lt;P&gt;@pimoa you can use &lt;CODE&gt;underLabel&lt;/CODE&gt; option of Single Value visualization to add a caption with token which can have value of Year To Date value using an independent search.&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/7566i3FF7135B8CAF7355/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;Following is a run anywhere example based on Splunk's _internal index which runs an independent search to pull current year count and uses &lt;CODE&gt;&amp;lt;progress&amp;gt;&lt;/CODE&gt; search event handler to set the token for total count for Year to Date. Then the same token is used in Single Value with &lt;CODE&gt;underLabel&lt;/CODE&gt;.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;Single Value with Trend and Additional Info&amp;lt;/label&amp;gt;
  &amp;lt;!-- Search Query for Year To Date Data --&amp;gt;
  &amp;lt;search&amp;gt;
    &amp;lt;query&amp;gt;| tstats count where index=_internal earliest=@y&amp;lt;/query&amp;gt;
    &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
    &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
    &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
    &amp;lt;progress&amp;gt;
      &amp;lt;set token="tokYearToDate"&amp;gt;$result.count$&amp;lt;/set&amp;gt;
    &amp;lt;/progress&amp;gt;
  &amp;lt;/search&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;single&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| tstats count where index=_internal earliest=-30d by _time span=1d&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
          &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="colorBy"&amp;gt;trend&amp;lt;/option&amp;gt;
        &amp;lt;option name="colorMode"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="numberPrecision"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="rangeColors"&amp;gt;["0x53a051","0x0877a6","0xf8be34","0xf1813f","0xdc4e41"]&amp;lt;/option&amp;gt;
        &amp;lt;option name="rangeValues"&amp;gt;[0,30,70,100]&amp;lt;/option&amp;gt;
        &amp;lt;option name="showSparkline"&amp;gt;1&amp;lt;/option&amp;gt;
        &amp;lt;option name="showTrendIndicator"&amp;gt;1&amp;lt;/option&amp;gt;
        &amp;lt;option name="trellis.enabled"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="trellis.scales.shared"&amp;gt;1&amp;lt;/option&amp;gt;
        &amp;lt;option name="trellis.size"&amp;gt;medium&amp;lt;/option&amp;gt;
        &amp;lt;option name="trendColorInterpretation"&amp;gt;standard&amp;lt;/option&amp;gt;
        &amp;lt;option name="trendDisplayMode"&amp;gt;absolute&amp;lt;/option&amp;gt;
        &amp;lt;option name="underLabel"&amp;gt;$tokYearToDate$ (YTD)&amp;lt;/option&amp;gt;
        &amp;lt;option name="unitPosition"&amp;gt;after&amp;lt;/option&amp;gt;
        &amp;lt;option name="useColors"&amp;gt;1&amp;lt;/option&amp;gt;
        &amp;lt;option name="useThousandSeparators"&amp;gt;1&amp;lt;/option&amp;gt;
      &amp;lt;/single&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 23 Aug 2019 15:53:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Add-second-value-to-Single-Value-panel/m-p/460493#M129928</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-08-23T15:53:46Z</dc:date>
    </item>
  </channel>
</rss>

