<?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 Rag status using if/case in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Rag-status-using-if-case/m-p/517471#M145512</link>
    <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;I have a really simple question but I can'f figure it out for the life of me.&amp;nbsp; I have a query set up that gives me the utilization of an array, and I want to have a text based field for its RAG status.&amp;nbsp; This is what I'm using&amp;nbsp;&lt;/P&gt;&lt;P&gt;| eval RAG=(Class='DB' AND Utilization &amp;gt;= 62, "Red", Utilization &amp;gt;= 50, "Yellow", Utilization &amp;lt; 40, "Green")&lt;BR /&gt;&lt;BR /&gt;I've tried to run it and I keep getting the eval statement is malformed error.&amp;nbsp; Any help you can give would be appreciated.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Sep 2020 12:52:44 GMT</pubDate>
    <dc:creator>codedtech</dc:creator>
    <dc:date>2020-09-02T12:52:44Z</dc:date>
    <item>
      <title>Rag status using if/case</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rag-status-using-if-case/m-p/517471#M145512</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;I have a really simple question but I can'f figure it out for the life of me.&amp;nbsp; I have a query set up that gives me the utilization of an array, and I want to have a text based field for its RAG status.&amp;nbsp; This is what I'm using&amp;nbsp;&lt;/P&gt;&lt;P&gt;| eval RAG=(Class='DB' AND Utilization &amp;gt;= 62, "Red", Utilization &amp;gt;= 50, "Yellow", Utilization &amp;lt; 40, "Green")&lt;BR /&gt;&lt;BR /&gt;I've tried to run it and I keep getting the eval statement is malformed error.&amp;nbsp; Any help you can give would be appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2020 12:52:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rag-status-using-if-case/m-p/517471#M145512</guid>
      <dc:creator>codedtech</dc:creator>
      <dc:date>2020-09-02T12:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: Rag status using if/case</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rag-status-using-if-case/m-p/517475#M145516</link>
      <description>&lt;P&gt;It looks like you're trying to use a &lt;FONT face="courier new,courier"&gt;case&lt;/FONT&gt; statement without including the "case" keyword.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2020 13:04:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rag-status-using-if-case/m-p/517475#M145516</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-09-02T13:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: Rag status using if/case</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rag-status-using-if-case/m-p/517476#M145517</link>
      <description>&lt;P&gt;&lt;SPAN&gt;hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/190786"&gt;@codedtech&lt;/a&gt;&amp;nbsp;, try this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;| eval RAG=case(Class='DB' AND Utilization &amp;gt;= 62, "Red", Utilization &amp;gt;= 50, "Yellow", Utilization &amp;lt; 40, "Green",1=1,"Unmatched")&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2020 13:08:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rag-status-using-if-case/m-p/517476#M145517</guid>
      <dc:creator>Nisha18789</dc:creator>
      <dc:date>2020-09-02T13:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: Rag status using if/case</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rag-status-using-if-case/m-p/517506#M145527</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/215670"&gt;@Nisha18789&lt;/a&gt;&amp;nbsp; Thank you so much, that helped a ton. My next question is how do I get it to build off a list for all of these?&lt;/P&gt;&lt;TABLE width="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="144"&gt;&lt;P&gt;&lt;STRONG&gt;class&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="51"&gt;&lt;P&gt;&lt;STRONG&gt;Green&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="56"&gt;&lt;P&gt;&lt;STRONG&gt;Yellow&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="55"&gt;&lt;P&gt;&lt;STRONG&gt;Red&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="144"&gt;&lt;P&gt;DB&lt;/P&gt;&lt;/TD&gt;&lt;TD width="51"&gt;&lt;P&gt;&amp;lt;60.0&lt;/P&gt;&lt;/TD&gt;&lt;TD width="56"&gt;&lt;P&gt;&amp;gt;=68.0&lt;/P&gt;&lt;/TD&gt;&lt;TD width="55"&gt;&lt;P&gt;&amp;gt;=75.0&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="144"&gt;&lt;P&gt;WEB&lt;/P&gt;&lt;/TD&gt;&lt;TD width="51"&gt;&lt;P&gt;&amp;lt;55.0&lt;/P&gt;&lt;/TD&gt;&lt;TD width="56"&gt;&lt;P&gt;&amp;gt;=63.0&lt;/P&gt;&lt;/TD&gt;&lt;TD width="55"&gt;&lt;P&gt;&amp;gt;=93.0&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="144"&gt;&lt;P&gt;APP&lt;/P&gt;&lt;/TD&gt;&lt;TD width="51"&gt;&lt;P&gt;&amp;lt;50.0&lt;/P&gt;&lt;/TD&gt;&lt;TD width="56"&gt;&lt;P&gt;&amp;gt;=80.0&lt;/P&gt;&lt;/TD&gt;&lt;TD width="55"&gt;&lt;P&gt;&amp;gt;=90.0&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="144"&gt;&lt;P&gt;ZFS&lt;/P&gt;&lt;/TD&gt;&lt;TD width="51"&gt;&lt;P&gt;&amp;lt;45.0&lt;/P&gt;&lt;/TD&gt;&lt;TD width="56"&gt;&lt;P&gt;&amp;gt;=66.0&lt;/P&gt;&lt;/TD&gt;&lt;TD width="55"&gt;&lt;P&gt;&amp;gt;=85.0&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2020 15:11:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rag-status-using-if-case/m-p/517506#M145527</guid>
      <dc:creator>codedtech</dc:creator>
      <dc:date>2020-09-02T15:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: Rag status using if/case</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rag-status-using-if-case/m-p/517601#M145561</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/190786"&gt;@codedtech&lt;/a&gt;&amp;nbsp;you can use chart command as below after the case statement, in place of values() function you can use any other function that suits your requirement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;| chart values(utilization) over RAG by Class&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;hope this helps, please upvote or mark my previous post as solution is that answered your original question.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2020 23:40:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rag-status-using-if-case/m-p/517601#M145561</guid>
      <dc:creator>Nisha18789</dc:creator>
      <dc:date>2020-09-02T23:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: Rag status using if/case</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rag-status-using-if-case/m-p/518271#M145754</link>
      <description>&lt;P&gt;I am also trying to classify a RAG status which has different RAG cut-offs per "Class" such as displayed in the table from &lt;A href="https://community.splunk.com/t5/user/viewprofilepage/user-id/190786" target="_blank"&gt;@codedtech&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;, would each rule need to be stated in the "case" statement before using the chart command?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2020 16:05:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rag-status-using-if-case/m-p/518271#M145754</guid>
      <dc:creator>laurag</dc:creator>
      <dc:date>2020-09-07T16:05:36Z</dc:date>
    </item>
  </channel>
</rss>

