<?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: Adding Sparkline based on eval variable in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Adding-Sparkline-based-on-eval-variable/m-p/490406#M136938</link>
    <description>&lt;P&gt;Sparklines require _time to work.  However, the initial &lt;CODE&gt;stats&lt;/CODE&gt; command is returning only the DeviceCount and OSHealth fields.  &lt;/P&gt;</description>
    <pubDate>Mon, 04 May 2020 13:39:30 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2020-05-04T13:39:30Z</dc:date>
    <item>
      <title>Adding Sparkline based on eval variable</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-Sparkline-based-on-eval-variable/m-p/490405#M136937</link>
      <description>&lt;P&gt;I have a search which captures data from all the machines on the network and calculates OS Health of each machine (host). I am displaying it like this &lt;BR /&gt;
OSHealth DeviceCount Percentage&lt;BR /&gt;
      5                 288                 35%&lt;BR /&gt;
      4                 150                 20%&lt;/P&gt;

&lt;P&gt;I want to add a sparkline to show the trend of changing percentage and add it like another column. I have tried alot based on splunk docs but it always show as a straight line. I would really appreciate some help. My search is attached below&lt;/P&gt;

&lt;P&gt;| stats count(host) AS DeviceCount by OSHealth&lt;BR /&gt;
| eventstats sum(DeviceCount) AS SumDevice&lt;BR /&gt;
| eval Percentage = round((DeviceCount/SumDevice)*100,1)&lt;BR /&gt;
| stats sparkline avg(Percentage) as Trend by OSHealth DeviceCount&lt;BR /&gt;
| table OSHealth DeviceCount Percentage&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2020 03:38:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-Sparkline-based-on-eval-variable/m-p/490405#M136937</guid>
      <dc:creator>itssaad14</dc:creator>
      <dc:date>2020-05-04T03:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Sparkline based on eval variable</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-Sparkline-based-on-eval-variable/m-p/490406#M136938</link>
      <description>&lt;P&gt;Sparklines require _time to work.  However, the initial &lt;CODE&gt;stats&lt;/CODE&gt; command is returning only the DeviceCount and OSHealth fields.  &lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2020 13:39:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-Sparkline-based-on-eval-variable/m-p/490406#M136938</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-05-04T13:39:30Z</dc:date>
    </item>
  </channel>
</rss>

