<?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 How to change Status Indicator size in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-change-Status-Indicator-size/m-p/254750#M29293</link>
    <description>&lt;P&gt;Hello Splunkers.&lt;/P&gt;

&lt;P&gt;I have 2 questions about &lt;STRONG&gt;Status Indicator Viz&lt;/STRONG&gt; and believe you guys can help me.&lt;/P&gt;

&lt;P&gt;1) Is it possible to limit the size of the icon?&lt;BR /&gt;
I know that with Single Value I can resize it using &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;option name="height"&amp;gt;300px&amp;lt;/option&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Do I need a CSS to do that? What I have is on figure 1 and what I want is on figure 2:&lt;BR /&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/1373i0BB3BA12F5C38C11/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;&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/1374i380EE057D1EB5DEC/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;BR /&gt;
BTW, at figure 2 I manually resized the Status Indicator with mouse.&lt;/P&gt;

&lt;P&gt;2) Can I show a different icon based on value? For example, &lt;EM&gt;check icon&lt;/EM&gt; when value is 0 and &lt;EM&gt;error icon&lt;/EM&gt; when value is greather than 0?&lt;BR /&gt;
I tried to use the option "Field Value" under format but no success.&lt;/P&gt;

&lt;P&gt;Thank you!&lt;BR /&gt;
Regards,&lt;/P&gt;</description>
    <pubDate>Thu, 19 May 2016 15:04:29 GMT</pubDate>
    <dc:creator>guimilare</dc:creator>
    <dc:date>2016-05-19T15:04:29Z</dc:date>
    <item>
      <title>How to change Status Indicator size</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-change-Status-Indicator-size/m-p/254750#M29293</link>
      <description>&lt;P&gt;Hello Splunkers.&lt;/P&gt;

&lt;P&gt;I have 2 questions about &lt;STRONG&gt;Status Indicator Viz&lt;/STRONG&gt; and believe you guys can help me.&lt;/P&gt;

&lt;P&gt;1) Is it possible to limit the size of the icon?&lt;BR /&gt;
I know that with Single Value I can resize it using &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;option name="height"&amp;gt;300px&amp;lt;/option&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Do I need a CSS to do that? What I have is on figure 1 and what I want is on figure 2:&lt;BR /&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/1373i0BB3BA12F5C38C11/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;&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/1374i380EE057D1EB5DEC/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;BR /&gt;
BTW, at figure 2 I manually resized the Status Indicator with mouse.&lt;/P&gt;

&lt;P&gt;2) Can I show a different icon based on value? For example, &lt;EM&gt;check icon&lt;/EM&gt; when value is 0 and &lt;EM&gt;error icon&lt;/EM&gt; when value is greather than 0?&lt;BR /&gt;
I tried to use the option "Field Value" under format but no success.&lt;/P&gt;

&lt;P&gt;Thank you!&lt;BR /&gt;
Regards,&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2016 15:04:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-change-Status-Indicator-size/m-p/254750#M29293</guid>
      <dc:creator>guimilare</dc:creator>
      <dc:date>2016-05-19T15:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to change Status Indicator size</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-change-Status-Indicator-size/m-p/254751#M29294</link>
      <description>&lt;P&gt;Ok, the first one I've discovered myself.&lt;BR /&gt;
The only thing you have to do is add the following line:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;option name="height"&amp;gt;110px&amp;lt;/option&amp;gt; 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;(of course, you can set a value for &lt;EM&gt;height&lt;/EM&gt; that fits you better)&lt;BR /&gt;
In my case, the xml is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;viz type="status_indicator_app.status_indicator"&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt; my search &amp;lt;/query&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="status_indicator_app.status_indicator.showOption"&amp;gt;1&amp;lt;/option&amp;gt;
        &amp;lt;option name="status_indicator_app.status_indicator.icon"&amp;gt;fix_icon&amp;lt;/option&amp;gt;
        &amp;lt;option name="status_indicator_app.status_indicator.fixIcon"&amp;gt;info-circle&amp;lt;/option&amp;gt;
        &amp;lt;option name="status_indicator_app.status_indicator.useColors"&amp;gt;true&amp;lt;/option&amp;gt;
        &amp;lt;option name="status_indicator_app.status_indicator.colorBy"&amp;gt;field_value&amp;lt;/option&amp;gt;
        &amp;lt;option name="status_indicator_app.status_indicator.staticColor"&amp;gt;#555&amp;lt;/option&amp;gt;
        &amp;lt;option name="status_indicator_app.status_indicator.fillTarget"&amp;gt;text&amp;lt;/option&amp;gt;
        &amp;lt;option name="status_indicator_app.status_indicator.precision"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="status_indicator_app.status_indicator.useThousandSeparator"&amp;gt;true&amp;lt;/option&amp;gt;
        &amp;lt;option name="height"&amp;gt;110px&amp;lt;/option&amp;gt;
      &amp;lt;/viz&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now, I'm working on the second question...&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2016 19:32:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-change-Status-Indicator-size/m-p/254751#M29294</guid>
      <dc:creator>guimilare</dc:creator>
      <dc:date>2016-05-19T19:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to change Status Indicator size</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-change-Status-Indicator-size/m-p/254752#M29295</link>
      <description>&lt;P&gt;For any search that generates a numeric field like &lt;STRONG&gt;result&lt;/STRONG&gt;, icon and color fields need to be mapped. Following are two options:&lt;/P&gt;

&lt;P&gt;Option 1 - Use Rangemap to set range_color and range_icon &lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;| table &lt;STRONG&gt;result&lt;/STRONG&gt; | rangemap field=result green=0-0 yellow=1-10 red=10-11 default=severe|eval &lt;STRONG&gt;range_color&lt;/STRONG&gt;=range |rangemap field=result arrow-circle-o-up=0-0 exclamation-circle=1-10 arrow-circle-o-down=10-11 default=arrow-circle-o-down| eval &lt;STRONG&gt;range_icon&lt;/STRONG&gt;=range | table result, range_icon, range_color&lt;/P&gt;

&lt;P&gt;Option 2 - Use Nested if or case statement&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;| table &lt;STRONG&gt;result&lt;/STRONG&gt; | rangemap field=result green=0-0 yellow=1-10 red=10-11 default=severe|eval &lt;STRONG&gt;range_color&lt;/STRONG&gt;=range |eval &lt;STRONG&gt;range_icon&lt;/STRONG&gt;=if(result=0, "arrow-circle-o-up",if(result &amp;gt;0 AND result&amp;lt;=10,"exclamation-circle","arrow-circle-o-down"))| table result, range_icon, range_color&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:33:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-change-Status-Indicator-size/m-p/254752#M29295</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-09-29T10:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to change Status Indicator size</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-change-Status-Indicator-size/m-p/254753#M29296</link>
      <description>&lt;P&gt;Thank you niketnilay !!&lt;BR /&gt;
It worked perfectly!&lt;/P&gt;

&lt;P&gt;I was missing the statements eval &lt;CODE&gt;range_color=range&lt;/CODE&gt;  and &lt;CODE&gt;eval range_icon=range&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Regards!&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2016 14:30:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-change-Status-Indicator-size/m-p/254753#M29296</guid>
      <dc:creator>guimilare</dc:creator>
      <dc:date>2016-08-26T14:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to change Status Indicator size</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-change-Status-Indicator-size/m-p/254754#M29297</link>
      <description>&lt;P&gt;Thanks Master guimilare!&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2017 21:52:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-change-Status-Indicator-size/m-p/254754#M29297</guid>
      <dc:creator>markuxProof</dc:creator>
      <dc:date>2017-06-19T21:52:44Z</dc:date>
    </item>
  </channel>
</rss>

