<?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: ITSI how to fix KPI sparklines? in Splunk ITSI</title>
    <link>https://community.splunk.com/t5/Splunk-ITSI/ITSI-how-to-fix-KPI-sparklines/m-p/405950#M889</link>
    <description>&lt;P&gt;@oshirnin - Can you provide your configurations, like everything your search timerange, search time span, frequency of search execution.&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jun 2019 11:31:12 GMT</pubDate>
    <dc:creator>VatsalJagani</dc:creator>
    <dc:date>2019-06-06T11:31:12Z</dc:date>
    <item>
      <title>ITSI how to fix KPI sparklines?</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/ITSI-how-to-fix-KPI-sparklines/m-p/405949#M888</link>
      <description>&lt;P&gt;Hello, everybody!&lt;/P&gt;

&lt;P&gt;I have some experience with Splunk Enterprise, but I'm relatively new to ITSI. I noticed, that IT Service Intelligence App sometimes (in fact - often, if not even always) shows KPI sparklines having wrong values. For test purposes I created two KPIs based on &lt;STRONG&gt;| inputlookup&lt;/STRONG&gt; - so, these can't have any null results regardless of "KPI Search Schedule" and "Calculation Window".&lt;/P&gt;

&lt;P&gt;Here is what I have (blue rectangles on screenshot):&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;My KPI "Cluster Nodes are UP by Node" for host2 (right on screenshot) always has value=1 for now (this is constant value in lookup), but KPI sparkline value continuously changes from 0 to 1 and back. That is wrong, looks like measured service value changes, but it is not. Sparkline must show straight line at 1 value!&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;My KPI "Cluster Nodes are UP by Node" (left on screenshot) also always has value=1 for now, but KPI sparkline shows it continuously changes from 0 to 1 and back.&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&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/7155i41545874037C3E60/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;Since Splunk ITSI is nothing but a monitoring solution, this is a real problem to the end-users. These sparklines confuse and I really wonder how I can fix this. I need some help how can I review the app/itsi/homeview dashboard code and maybe even change it a little bit to fix the problem.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2019 08:07:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/ITSI-how-to-fix-KPI-sparklines/m-p/405949#M888</guid>
      <dc:creator>oshirnin</dc:creator>
      <dc:date>2019-06-06T08:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: ITSI how to fix KPI sparklines?</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/ITSI-how-to-fix-KPI-sparklines/m-p/405950#M889</link>
      <description>&lt;P&gt;@oshirnin - Can you provide your configurations, like everything your search timerange, search time span, frequency of search execution.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2019 11:31:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/ITSI-how-to-fix-KPI-sparklines/m-p/405950#M889</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2019-06-06T11:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: ITSI how to fix KPI sparklines?</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/ITSI-how-to-fix-KPI-sparklines/m-p/405951#M890</link>
      <description>&lt;P&gt;@VatsalJagani here is what I have. All my KPIs are based on the very simple lookup&lt;/P&gt;

&lt;PRE&gt;| inputlookup hostname_status.csv&lt;/PRE&gt;

&lt;PRE&gt;hostname | status
---------------------------
host1         | down
host2         | up
host3         | up&lt;/PRE&gt;

&lt;P&gt;My KPI "Cluster Nodes are UP by Node" runs every 5 min on last 5 min data (it doesn't really matter as the underlying data is the static lookup). Complete KPI configuration is the following:&lt;/P&gt;

&lt;PRE&gt;[Indicator - 033d8644924e3d7c4e2724ec - ITSI Search]
action.indicator = 1
action.indicator._itsi_kpi_id = 033d8644924e3d7c4e2724ec
action.indicator._itsi_service_id = 1f78e07e-bbfd-4f31-8e33-67224008e498
alert.suppress = 0
alert.track = 0
cron_schedule = 2-59/5 * * * *
description = Auto created scheduled search during kpi creation
dispatch.earliest_time = -300s
dispatch.latest_time = now
enableSched = 1
search = | inputlookup hostname_status.csv | eval th = if(status="up", 1, 0) | fields hostname, status, th | eval alert_value = th | `gettime` | eval sec_grp = "default_itsi_security_group" | `match_entities(hostname, sec_grp)` | eval serviceid = "1f78e07e-bbfd-4f31-8e33-67224008e498" | `aggregate_entity_into_service(sum)` | `assess_severity(1f78e07e-bbfd-4f31-8e33-67224008e498, 033d8644924e3d7c4e2724ec, true, true, true)` | eval kpi="Cluster Nodes are UP by Node", urgency="5", alert_period="5", serviceid="1f78e07e-bbfd-4f31-8e33-67224008e498" | `assess_urgency`&lt;/PRE&gt;

&lt;P&gt;Hope you have some ideas on the issue.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 13:03:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/ITSI-how-to-fix-KPI-sparklines/m-p/405951#M890</guid>
      <dc:creator>oshirnin</dc:creator>
      <dc:date>2019-06-11T13:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: ITSI how to fix KPI sparklines?</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/ITSI-how-to-fix-KPI-sparklines/m-p/405952#M891</link>
      <description>&lt;P&gt;@oshirnin,&lt;/P&gt;

&lt;P&gt;After looking at your question and comments I think you should set  &lt;CODE&gt;Fill Data Gaps with&lt;/CODE&gt; to "connect" then you will see continuous line on 1. Your current configuration looks to be on "0" value for "Fill Data Gaps with".&lt;/P&gt;

&lt;P&gt;Hope this helps!!!&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 14:26:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/ITSI-how-to-fix-KPI-sparklines/m-p/405952#M891</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2019-06-11T14:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: ITSI how to fix KPI sparklines?</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/ITSI-how-to-fix-KPI-sparklines/m-p/405953#M892</link>
      <description>&lt;P&gt;Please check my answer and let me know if that works.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 14:27:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/ITSI-how-to-fix-KPI-sparklines/m-p/405953#M892</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2019-06-11T14:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: ITSI how to fix KPI sparklines?</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/ITSI-how-to-fix-KPI-sparklines/m-p/405954#M893</link>
      <description>&lt;P&gt;@VatsalJagani, hello! Sorry for the long response time, thank you for the patience. I tested carefully, unfortunately your advice does not help.&lt;/P&gt;

&lt;P&gt;At first, my KPI was really set with 'Fill gaps in data with &lt;STRONG&gt;Null&lt;/STRONG&gt; values' as you guessed:&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://images2.imgbox.com/41/11/OznWvOSf_o.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://images2.imgbox.com/19/35/w4zekZrP_o.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;I changed this setting to 'Fill gaps in data with &lt;STRONG&gt;last available&lt;/STRONG&gt; value of data' as you suggested:&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://images2.imgbox.com/da/68/wBPcTTfk_o.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://images2.imgbox.com/4f/79/7lttc4OV_o.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;I waited for some time for KPI to be recalculated and checked the ITSI Service Analyzer, nothing changed:&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://images2.imgbox.com/73/02/B6PRV9Zw_o.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;My KPI always have constant value, it is built on non-changing lookup. However, KPI sparklines in Service Analyzer continuously changes from 0 to 1 and back, that is wrong.&lt;/P&gt;

&lt;P&gt;I also mentioned, that changing Service Analyzer time interval from 'Last 1h' to longer values - 'Last 2h', 'Last 12h' helps a little bit, but even in this case there is a problem on the right end of the line:&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://images2.imgbox.com/db/e7/Zq7u670t_o.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://images2.imgbox.com/bb/4d/uYqXX09y_o.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;I am quite sure, that 'Fill gaps in data with' affects only the KPI value calculation, if there is a gap in data, but does not apply to value sparkline display. It looks like there is a hard-coded timechart query with relatively low span, compared to the KPI execution interval. Therefore, this query predictably returns some Null values. After that there is a Graph Chart, which is hard-code configured with 'Null Values - Zero' visualization format, but it should be configured with 'Null Values - Connected'. I am looking a way to achieve this, @VatsalJagani  can you maybe help me find where this dashboard is stored? I would like to review the XML and maybe fix it. I understand well what limitations this will lead!&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 10:21:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/ITSI-how-to-fix-KPI-sparklines/m-p/405954#M893</guid>
      <dc:creator>oshirnin</dc:creator>
      <dc:date>2019-07-01T10:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: ITSI how to fix KPI sparklines?</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/ITSI-how-to-fix-KPI-sparklines/m-p/517521#M2155</link>
      <description>&lt;P&gt;&lt;SPAN&gt;The issue here is actually with the rendering engine of the sparkline or something about how core splunk (not ITSI) passes the values to the sparkline for rendering. If the time range is small enough (say last 60m) then that's small enough to bucket results passed to the sparkline into 1m spans which will result in 4 out of every 5 buckets not having a datapoint. (for a 5 minute KPI anyway)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Interestingly enough, as per this answers post:&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.splunk.com/t5/Archive/Sparkline-Format/td-p/61136" target="_blank" rel="noopener"&gt;https://community.splunk.com/t5/Archive/Sparkline-Format/td-p/61136&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;the sparkline rendering can be altered in SimpleXML and I've tested it with a dashboard. It would be a total ITSI hack, but it might well be possible to identify the conf file where the sparkline rendering config is passed for the service analyzer and modify to instead show a bar chart... the following results might look something more like this...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="spark.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10613iA7D918CB8167D22C/image-size/large?v=v2&amp;amp;px=999" role="button" title="spark.png" alt="spark.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2020 15:41:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/ITSI-how-to-fix-KPI-sparklines/m-p/517521#M2155</guid>
      <dc:creator>jwiedemann_splu</dc:creator>
      <dc:date>2020-09-02T15:41:12Z</dc:date>
    </item>
  </channel>
</rss>

