<?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: Chart set range value in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Chart-set-range-value/m-p/87247#M22327</link>
    <description>&lt;P&gt;Thanks @dwaddle, exactly what i needed :), had to set the normal SLA &amp;gt; 100, anything below that is abnormal and is show in the chart&lt;/P&gt;</description>
    <pubDate>Thu, 10 Oct 2013 09:18:29 GMT</pubDate>
    <dc:creator>markgomez00</dc:creator>
    <dc:date>2013-10-10T09:18:29Z</dc:date>
    <item>
      <title>Chart set range value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Chart-set-range-value/m-p/87245#M22325</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have a perfmon counter which is monitoring the SLA, most of the time it's constant in a huge number(millions), and goes in a downward trend which basically indicates that the SLA is about to be breached.&lt;/P&gt;

&lt;P&gt;what i want to achieve in the chart/panel is set a range within 0-100, so when the SLA goes down and reached the range &amp;lt;100 range that's the only time it should show in the chart, from 99 down to the lowest value it would reach&lt;/P&gt;

&lt;P&gt;my search string is&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host=[hostname] index=[index]  counter="SLA violation countdown"  | timechart max(Value) by instance
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;so far i have tried to add the options:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;option name="charting.axisY.minimumNumber"&amp;gt;0&amp;lt;/option&amp;gt;
&amp;lt;option name="charting.axisY.maximumNumber"&amp;gt;100&amp;lt;/option&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but nothing shows up on the chart&lt;BR /&gt;
also if you have better ideas on a better approach, it would be great &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
any help would be appreciated, Thanks in advance guys&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2013 13:59:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Chart-set-range-value/m-p/87245#M22325</guid>
      <dc:creator>markgomez00</dc:creator>
      <dc:date>2013-10-08T13:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: Chart set range value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Chart-set-range-value/m-p/87246#M22326</link>
      <description>&lt;P&gt;For data to appear, the data's value must be within the chart's y-axis limits.  If you set the y-axis to have a range of [0,100] then your data must also be [0,100] or it will be drawn "off the chart".  &lt;/P&gt;

&lt;P&gt;You could normalize your data, if you have an idea of what defines " &amp;lt; 100% ".  Say for example anything below 123,456,789 is "abnormal" and we want a linear drop...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;your search&amp;gt; 
| eval sla_percent= if(count &amp;gt;= 123456789,101,((count / 123456789) * 100))
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This establishes 123,456,789 widgets / time interval as "101% SLA".  Anything above that is still 101% SLA.  With the chart's y-axis fixed at [0,100] then the hard-coded 101% value will not be drawn on the chart at all.  Anything less than your trigger value is ranged from 0 to 100 linearly.  So if you are producing 122,000,000 widgets / time interval then that corresponds to an SLA of 98.82 -- and will appear on the chart.&lt;/P&gt;

&lt;P&gt;Note if your chart is a bar or column chart instead of a line or area you may want to hard-code "ideal" at -1 instead of 101 -- so it's drawn "below" the lower range of the y-axis.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2013 21:59:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Chart-set-range-value/m-p/87246#M22326</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2013-10-08T21:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Chart set range value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Chart-set-range-value/m-p/87247#M22327</link>
      <description>&lt;P&gt;Thanks @dwaddle, exactly what i needed :), had to set the normal SLA &amp;gt; 100, anything below that is abnormal and is show in the chart&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2013 09:18:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Chart-set-range-value/m-p/87247#M22327</guid>
      <dc:creator>markgomez00</dc:creator>
      <dc:date>2013-10-10T09:18:29Z</dc:date>
    </item>
  </channel>
</rss>

