<?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 make a piechart with 2 different &amp;quot;values&amp;quot; 1 &amp;quot;value&amp;quot; is all the &amp;quot;= 0&amp;quot; in green, and the rest in red? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-piechart-with-2-different-quot-values-quot-1-quot/m-p/585510#M203994</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index="***********" sourcetype="**********" (host="*")
| rex field=_raw "(Available Updates)\s+(?&amp;lt;AvailableUpdates&amp;gt;.+)"
| table _time _raw host AvailableUpdates
| stats latest(AvailableUpdates) as AvailableUpdates by host&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hey guys.&lt;BR /&gt;&lt;BR /&gt;So I have a search that gives a table as such:&lt;BR /&gt;&lt;BR /&gt;Host __________________ AvailableUpdates&lt;BR /&gt;&lt;BR /&gt;Host1_________________ = 21&lt;BR /&gt;Host2__________________= 0&lt;BR /&gt;Host3__________________= 5&lt;BR /&gt;Host4__________________= 0&lt;BR /&gt;Host5__________________ null&lt;BR /&gt;&lt;BR /&gt;I am looking to make a piechart with 2 different "values"&lt;BR /&gt;1 "value" is all the "= 0" in green, and the rest in red.&lt;BR /&gt;&lt;BR /&gt;Can't quite figure out how to sort this.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Tyvm&lt;/P&gt;</description>
    <pubDate>Thu, 17 Feb 2022 16:10:06 GMT</pubDate>
    <dc:creator>michaelnorup</dc:creator>
    <dc:date>2022-02-17T16:10:06Z</dc:date>
    <item>
      <title>How to make a piechart with 2 different "values" 1 "value" is all the "= 0" in green, and the rest in red?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-piechart-with-2-different-quot-values-quot-1-quot/m-p/585510#M203994</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index="***********" sourcetype="**********" (host="*")
| rex field=_raw "(Available Updates)\s+(?&amp;lt;AvailableUpdates&amp;gt;.+)"
| table _time _raw host AvailableUpdates
| stats latest(AvailableUpdates) as AvailableUpdates by host&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hey guys.&lt;BR /&gt;&lt;BR /&gt;So I have a search that gives a table as such:&lt;BR /&gt;&lt;BR /&gt;Host __________________ AvailableUpdates&lt;BR /&gt;&lt;BR /&gt;Host1_________________ = 21&lt;BR /&gt;Host2__________________= 0&lt;BR /&gt;Host3__________________= 5&lt;BR /&gt;Host4__________________= 0&lt;BR /&gt;Host5__________________ null&lt;BR /&gt;&lt;BR /&gt;I am looking to make a piechart with 2 different "values"&lt;BR /&gt;1 "value" is all the "= 0" in green, and the rest in red.&lt;BR /&gt;&lt;BR /&gt;Can't quite figure out how to sort this.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Tyvm&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 16:10:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-piechart-with-2-different-quot-values-quot-1-quot/m-p/585510#M203994</guid>
      <dc:creator>michaelnorup</dc:creator>
      <dc:date>2022-02-17T16:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: Piechart with nonnumeric values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-piechart-with-2-different-quot-values-quot-1-quot/m-p/585523#M203998</link>
      <description>&lt;P&gt;Ok, so i changed the search to&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="******" sourcetype="**********" (host="*")
| rex field=_raw "(Available Updates)\s+(?&amp;lt;AvailableUpdates&amp;gt;.+)"
| table _time _raw host AvailableUpdates
| stats count by AvailableUpdates | chart count by AvailableUpdates&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now i would like to group it in to just 2 groups as stated above instead of the 4 groups as now&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 10:54:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-piechart-with-2-different-quot-values-quot-1-quot/m-p/585523#M203998</guid>
      <dc:creator>michaelnorup</dc:creator>
      <dc:date>2022-02-17T10:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: Piechart with nonnumeric values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-piechart-with-2-different-quot-values-quot-1-quot/m-p/585525#M203999</link>
      <description>&lt;P&gt;Do you mean something like this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=_raw "(Available Updates)\s+(?&amp;lt;AvailableUpdates&amp;gt;.+)"
| table _time _raw host AvailableUpdates
| stats count by AvailableUpdates 
| eval status=if(AvailableUpdates=0,"green","red")
| chart count by status&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 12:18:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-piechart-with-2-different-quot-values-quot-1-quot/m-p/585525#M203999</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-02-17T12:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: Piechart with nonnumeric values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-piechart-with-2-different-quot-values-quot-1-quot/m-p/585528#M204000</link>
      <description>&lt;P&gt;Yea that almost did the trick thanks,&lt;BR /&gt;&lt;BR /&gt;Think you could remove the index and sourcetype from your reply?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Also, can i have more than 1 value in the eval status=if(value1=something AND value2=something etc) ?&lt;BR /&gt;&lt;BR /&gt;It didnt actually color the chart correctly though. Also is there a way to get the actual count to show inside the chart aswell? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 11:30:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-piechart-with-2-different-quot-values-quot-1-quot/m-p/585528#M204000</guid>
      <dc:creator>michaelnorup</dc:creator>
      <dc:date>2022-02-17T11:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: Piechart with nonnumeric values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-piechart-with-2-different-quot-values-quot-1-quot/m-p/585550#M204016</link>
      <description>&lt;P&gt;You can use the charting option&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;        &amp;lt;option name="charting.seriesColors"&amp;gt;[0x00ff00,0xff0000]&amp;lt;/option&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 17 Feb 2022 12:40:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-piechart-with-2-different-quot-values-quot-1-quot/m-p/585550#M204016</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-02-17T12:40:25Z</dc:date>
    </item>
  </channel>
</rss>

