<?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 to create a report on error codes and how many times each occurred over a period of time using regex and timechart? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-report-on-error-codes-and-how-many-times-each/m-p/272328#M81956</link>
    <description>&lt;P&gt;Can you provide some lines of log just to ensure the rex match?&lt;/P&gt;</description>
    <pubDate>Tue, 15 Dec 2015 16:14:30 GMT</pubDate>
    <dc:creator>jmallorquin</dc:creator>
    <dc:date>2015-12-15T16:14:30Z</dc:date>
    <item>
      <title>How to create a report on error codes and how many times each occurred over a period of time using regex and timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-report-on-error-codes-and-how-many-times-each/m-p/272327#M81955</link>
      <description>&lt;P&gt;In my application, it will print some error codes like OPT-00A001, OPT-00A002, OPT-00A003, upto OPT-00A010. I need to prepare a report to know each error code and how many times occurred over a period of time.&lt;/P&gt;

&lt;P&gt;No idea how to use regex and timechart to get this kind of report. Please suggest.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2015 12:14:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-report-on-error-codes-and-how-many-times-each/m-p/272327#M81955</guid>
      <dc:creator>parameshjava</dc:creator>
      <dc:date>2015-12-15T12:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a report on error codes and how many times each occurred over a period of time using regex and timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-report-on-error-codes-and-how-many-times-each/m-p/272328#M81956</link>
      <description>&lt;P&gt;Can you provide some lines of log just to ensure the rex match?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2015 16:14:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-report-on-error-codes-and-how-many-times-each/m-p/272328#M81956</guid>
      <dc:creator>jmallorquin</dc:creator>
      <dc:date>2015-12-15T16:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a report on error codes and how many times each occurred over a period of time using regex and timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-report-on-error-codes-and-how-many-times-each/m-p/272329#M81957</link>
      <description>&lt;P&gt;Without actual logs, it is very difficult to isolate the pattern for your errorcode to write the correct regex. Having said that, if you error codes are always the same patter "OPT-" followed by 6 characters, then you can use this. This also assumes the error code appears only once an event. This also assumes, this pattern of OPT- followed by 6 chars doesn't occur anywhere else in the event. If it does, this regex will only get the first occurrence&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex "(?&amp;lt;ec&amp;gt;OPT-\w{6})" | timechart count by ec
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 Dec 2015 16:53:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-report-on-error-codes-and-how-many-times-each/m-p/272329#M81957</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2015-12-15T16:53:22Z</dc:date>
    </item>
  </channel>
</rss>

