<?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: How do I add meaningful labels to error codes? in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/How-do-I-add-meaningful-labels-to-error-codes/m-p/416653#M5794</link>
    <description>&lt;P&gt;&lt;STRONG&gt;Current Query :&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;index=akamai_pi_prod message.reqHost=rpama message.status IN ("200","201","204","206","302","304","403","404","500","502")|chart count by message.reqHost,message.status&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 21:33:25 GMT</pubDate>
    <dc:creator>harishnpandey</dc:creator>
    <dc:date>2020-09-29T21:33:25Z</dc:date>
    <item>
      <title>How do I add meaningful labels to error codes?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-do-I-add-meaningful-labels-to-error-codes/m-p/416652#M5793</link>
      <description>&lt;P&gt;How do I add meaningful labels to error codes?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=akamai_pi_prod   message.reqHost=*rpama* message.status IN ("200","201","204","206","302","304","403","404","500","502")|rename message.status="200" as "200-Success"| chart count by message.reqHost,message.status
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;H1&gt;Current Result With above query &lt;/H1&gt;

&lt;P&gt;message.reqHost       200         206       304     502&lt;/P&gt;

&lt;H1&gt;xyz.com                      12568     23000     100         56&lt;/H1&gt;

&lt;H1&gt;Expected Result:&lt;/H1&gt;

&lt;P&gt;&lt;STRONG&gt;message.reqHost         200-Succes          206 -Partial Content     304-Cache                502-Bad Gateway&lt;/STRONG&gt;&lt;/P&gt;

&lt;H1&gt;          xyz.com                      12568                     23000                               100                                56&lt;/H1&gt;

&lt;P&gt;Appreciate your help on this &lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Harish&lt;/P&gt;</description>
      <pubDate>Fri, 12 Oct 2018 17:32:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-do-I-add-meaningful-labels-to-error-codes/m-p/416652#M5793</guid>
      <dc:creator>harishnpandey</dc:creator>
      <dc:date>2018-10-12T17:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add meaningful labels to error codes?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-do-I-add-meaningful-labels-to-error-codes/m-p/416653#M5794</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Current Query :&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;index=akamai_pi_prod message.reqHost=rpama message.status IN ("200","201","204","206","302","304","403","404","500","502")|chart count by message.reqHost,message.status&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 21:33:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-do-I-add-meaningful-labels-to-error-codes/m-p/416653#M5794</guid>
      <dc:creator>harishnpandey</dc:creator>
      <dc:date>2020-09-29T21:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add meaningful labels to error codes?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-do-I-add-meaningful-labels-to-error-codes/m-p/416654#M5795</link>
      <description>&lt;P&gt;You can do in Settings-&amp;gt;fields-&amp;gt;CalculatedFields&lt;/P&gt;</description>
      <pubDate>Fri, 12 Oct 2018 18:39:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-do-I-add-meaningful-labels-to-error-codes/m-p/416654#M5795</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2018-10-12T18:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add meaningful labels to error codes?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-do-I-add-meaningful-labels-to-error-codes/m-p/416655#M5796</link>
      <description>&lt;P&gt;No, I dont have access to Splunk configurations so I have to manage with Splunk query only&lt;/P&gt;</description>
      <pubDate>Fri, 12 Oct 2018 20:02:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-do-I-add-meaningful-labels-to-error-codes/m-p/416655#M5796</guid>
      <dc:creator>harishnpandey</dc:creator>
      <dc:date>2018-10-12T20:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add meaningful labels to error codes?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-do-I-add-meaningful-labels-to-error-codes/m-p/416656#M5797</link>
      <description>&lt;P&gt;Do the rename for each status code after the chart command-&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; chart count by message.reqHost,message.status| rename "200" as "Success_200", 206 as "206-Partial" ....
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 12 Oct 2018 20:41:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-do-I-add-meaningful-labels-to-error-codes/m-p/416656#M5797</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2018-10-12T20:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add meaningful labels to error codes?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-do-I-add-meaningful-labels-to-error-codes/m-p/416657#M5798</link>
      <description>&lt;P&gt;Eval is your friend. Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=akamai_pi_prod message.reqHost=rpama message.status IN ("200","201","204","206","302","304","403","404","500","502") | eval Status=case(message.status == 200, "Success", message.status == 206, "Partial Content", message.status == 304, "Cache", message.status == 502, "Bad Gateway", true(), "Unknown") | stats count by message.reqHost,Status
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 12 Oct 2018 20:54:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-do-I-add-meaningful-labels-to-error-codes/m-p/416657#M5798</guid>
      <dc:creator>bcyates</dc:creator>
      <dc:date>2018-10-12T20:54:54Z</dc:date>
    </item>
  </channel>
</rss>

