<?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: Extracting record which is not success after few retry. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Extracting-record-which-is-not-success-after-few-retry/m-p/526084#M148489</link>
    <description>&lt;P&gt;1.&amp;nbsp; extract the last status code by customer id&amp;nbsp; &amp;nbsp;I wasn't sure field in your search so used _raw&lt;/P&gt;&lt;P&gt;| rex field=_raw "^(?&amp;lt;statuscode&amp;gt;[a-zA-Z]+)\s|customer\sid\s+:\s(?&amp;lt;customerid&amp;gt;[0-9A-Z]+)"&lt;BR /&gt;| stats last(statuscode) by customerid&lt;BR /&gt;&lt;BR /&gt;2.&amp;nbsp; if understanding you correctly; you wanted any customer id's (where the last code is a failure, didn't aks to validate file 5 events but could do that too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;your search  blah, blah, blah...
| rex field=_raw "^(?&amp;lt;statuscode&amp;gt;[a-zA-Z]+)\s|customer\sid\s+:\s(?&amp;lt;customerid&amp;gt;[0-9A-Z]+)"
| stats last(statuscode) by customerid
| where statuscode = "Error"
| table customerid&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Oct 2020 19:00:40 GMT</pubDate>
    <dc:creator>kennetkline</dc:creator>
    <dc:date>2020-10-22T19:00:40Z</dc:date>
    <item>
      <title>Extracting record which is not success after few retry.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-record-which-is-not-success-after-few-retry/m-p/526075#M148488</link>
      <description>&lt;P&gt;I have below log message :&lt;BR /&gt;basically it is for creating customer&amp;nbsp;record and if we got error the we are retrying for 5 times to get succeed.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;log message-------------&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Error while creating record&amp;nbsp; for customer id :&amp;nbsp;94ABGH0048&lt;/P&gt;&lt;P&gt;Error while creating record &amp;nbsp;for customer id : 94ABGH0048&lt;/P&gt;&lt;P&gt;Successfully created record for customer id : 94ABGH0048&lt;/P&gt;&lt;P&gt;Error while creating record &amp;nbsp;for customer id :&amp;nbsp;902SDKK720&lt;/P&gt;&lt;P&gt;Successfully created record for customer id : 945TTFK048&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;can i get those customer id for which record not created&amp;nbsp;Successfully ?&lt;BR /&gt;&lt;BR /&gt;according to above log message output should be&amp;nbsp; "902SDKK720"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 18:08:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-record-which-is-not-success-after-few-retry/m-p/526075#M148488</guid>
      <dc:creator>Nilesh067</dc:creator>
      <dc:date>2020-10-22T18:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting record which is not success after few retry.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-record-which-is-not-success-after-few-retry/m-p/526084#M148489</link>
      <description>&lt;P&gt;1.&amp;nbsp; extract the last status code by customer id&amp;nbsp; &amp;nbsp;I wasn't sure field in your search so used _raw&lt;/P&gt;&lt;P&gt;| rex field=_raw "^(?&amp;lt;statuscode&amp;gt;[a-zA-Z]+)\s|customer\sid\s+:\s(?&amp;lt;customerid&amp;gt;[0-9A-Z]+)"&lt;BR /&gt;| stats last(statuscode) by customerid&lt;BR /&gt;&lt;BR /&gt;2.&amp;nbsp; if understanding you correctly; you wanted any customer id's (where the last code is a failure, didn't aks to validate file 5 events but could do that too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;your search  blah, blah, blah...
| rex field=_raw "^(?&amp;lt;statuscode&amp;gt;[a-zA-Z]+)\s|customer\sid\s+:\s(?&amp;lt;customerid&amp;gt;[0-9A-Z]+)"
| stats last(statuscode) by customerid
| where statuscode = "Error"
| table customerid&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 19:00:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-record-which-is-not-success-after-few-retry/m-p/526084#M148489</guid>
      <dc:creator>kennetkline</dc:creator>
      <dc:date>2020-10-22T19:00:40Z</dc:date>
    </item>
  </channel>
</rss>

