<?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 make a Splunk query that reads all error code , it's message and count? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-make-a-Splunk-query-that-reads-all-error-code-it-s/m-p/377699#M68326</link>
    <description>&lt;P&gt;Can you share your whole JSON event?&lt;/P&gt;</description>
    <pubDate>Wed, 07 Nov 2018 20:59:50 GMT</pubDate>
    <dc:creator>Rob2520</dc:creator>
    <dc:date>2018-11-07T20:59:50Z</dc:date>
    <item>
      <title>How do I make a Splunk query that reads all error code , it's message and count?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-make-a-Splunk-query-that-reads-all-error-code-it-s/m-p/377698#M68325</link>
      <description>&lt;P&gt;I have a JSON response now, and, from that, i want to create a table that will have all Unique Error Codes, Messages and Count . I am not able to read the JSON message in Splunk. How can we do this in Splunk? Below is one sample JSON response which i have &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;level:   DEBUG  
line:    43 
logger:  ErrorUtils 
message: Error: {"ErrorCode":"201","Message":"Invalid User"}    
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have created a query just to read the eventtype. i am not sure how i can proceed further on this. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eventtype="myevent"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 06 Nov 2018 16:34:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-make-a-Splunk-query-that-reads-all-error-code-it-s/m-p/377698#M68325</guid>
      <dc:creator>gauravepi</dc:creator>
      <dc:date>2018-11-06T16:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a Splunk query that reads all error code , it's message and count?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-make-a-Splunk-query-that-reads-all-error-code-it-s/m-p/377699#M68326</link>
      <description>&lt;P&gt;Can you share your whole JSON event?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Nov 2018 20:59:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-make-a-Splunk-query-that-reads-all-error-code-it-s/m-p/377699#M68326</guid>
      <dc:creator>Rob2520</dc:creator>
      <dc:date>2018-11-07T20:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a Splunk query that reads all error code , it's message and count?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-make-a-Splunk-query-that-reads-all-error-code-it-s/m-p/377700#M68327</link>
      <description>&lt;P&gt;Assuming your json is properly formatted, try setting KV_Mode=json in your props.conf file against that sourcetype. It should automatically extract the field values from the json events.&lt;/P&gt;

&lt;P&gt;You can read more about it here:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/admin/Propsconf"&gt;https://docs.splunk.com/Documentation/Splunk/latest/admin/Propsconf&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Let me know if that helps.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Nov 2018 09:59:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-make-a-Splunk-query-that-reads-all-error-code-it-s/m-p/377700#M68327</guid>
      <dc:creator>pramit46</dc:creator>
      <dc:date>2018-11-08T09:59:19Z</dc:date>
    </item>
  </channel>
</rss>

