<?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: Parse first/last error in an event in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Parse-first-last-error-in-an-event/m-p/177144#M50899</link>
    <description>&lt;P&gt;Correct, it is a multiline event using a regex to parse the Start and End on the indexer manually for a transaction in our system.  I have stopped working on this piece due to the random number of errors that can be thrown, as there is no consistency.&lt;/P&gt;</description>
    <pubDate>Tue, 17 Dec 2013 23:55:19 GMT</pubDate>
    <dc:creator>icyfeverr</dc:creator>
    <dc:date>2013-12-17T23:55:19Z</dc:date>
    <item>
      <title>Parse first/last error in an event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Parse-first-last-error-in-an-event/m-p/177139#M50894</link>
      <description>&lt;P&gt;I have an event that has multiple lines, it can have multiple Errors in the event and I need to query either the first or last error from the event.  Does anyone know how to do this by chance?  I am needing it for a chart to display errors, but the multiple codes are causing the numbers to be skewed.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2013 20:15:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Parse-first-last-error-in-an-event/m-p/177139#M50894</guid>
      <dc:creator>icyfeverr</dc:creator>
      <dc:date>2013-12-12T20:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: Parse first/last error in an event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Parse-first-last-error-in-an-event/m-p/177140#M50895</link>
      <description>&lt;P&gt;Can you post an example event?&lt;BR /&gt;
That will make it easier to create a regex that will grab the first or last error in it.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2013 20:17:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Parse-first-last-error-in-an-event/m-p/177140#M50895</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2013-12-12T20:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: Parse first/last error in an event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Parse-first-last-error-in-an-event/m-p/177141#M50896</link>
      <description>&lt;P&gt;[2010-08-12 11:54:56.281][ERROR] [ 4363 ] - User credentials are invalid. &lt;BR /&gt;
[2010-08-12 11:54:56.281][ERROR]AuthResultUserUnknownException &lt;BR /&gt;
[2010-08-12 11:54:56.281][ERROR] [ 4370 ] - User ****** is unknown. Auth result code = 15. &lt;BR /&gt;
[2010-08-12 11:54:56.281][ERROR]AuthInterfaceException &lt;BR /&gt;
[2010-08-12 11:54:56.281][ERROR] [ 4363 ] - User credentials are invalid.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2013 20:41:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Parse-first-last-error-in-an-event/m-p/177141#M50896</guid>
      <dc:creator>icyfeverr</dc:creator>
      <dc:date>2013-12-12T20:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: Parse first/last error in an event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Parse-first-last-error-in-an-event/m-p/177142#M50897</link>
      <description>&lt;P&gt;And this is an example of a single event, not six events? &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex "ERROR\]\s?(?&amp;lt;err_msg&amp;gt;[^\r\n]+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;ought to work..&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2013 21:00:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Parse-first-last-error-in-an-event/m-p/177142#M50897</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-12-12T21:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: Parse first/last error in an event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Parse-first-last-error-in-an-event/m-p/177143#M50898</link>
      <description>&lt;P&gt;So you could use dedup to find the most recent event:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; sourcetype=foo | dedup error_code by host | timechart count by error_code
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Does this give you what you need?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2013 14:11:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Parse-first-last-error-in-an-event/m-p/177143#M50898</guid>
      <dc:creator>dart</dc:creator>
      <dc:date>2013-12-16T14:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: Parse first/last error in an event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Parse-first-last-error-in-an-event/m-p/177144#M50899</link>
      <description>&lt;P&gt;Correct, it is a multiline event using a regex to parse the Start and End on the indexer manually for a transaction in our system.  I have stopped working on this piece due to the random number of errors that can be thrown, as there is no consistency.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2013 23:55:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Parse-first-last-error-in-an-event/m-p/177144#M50899</guid>
      <dc:creator>icyfeverr</dc:creator>
      <dc:date>2013-12-17T23:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: Parse first/last error in an event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Parse-first-last-error-in-an-event/m-p/177145#M50900</link>
      <description>&lt;P&gt;I have stopped working on this piece due to the random number of errors that can be thrown, as there is no consistency.  I appreciate the help, but will need to address at a later time after modifications to the logs can be done.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2013 23:56:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Parse-first-last-error-in-an-event/m-p/177145#M50900</guid>
      <dc:creator>icyfeverr</dc:creator>
      <dc:date>2013-12-17T23:56:01Z</dc:date>
    </item>
  </channel>
</rss>

