<?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 field with a guid as an end anchor in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Extracting-field-with-a-guid-as-an-end-anchor/m-p/176753#M50781</link>
    <description>&lt;P&gt;No it does not always end with a . I want to set the logic to:&lt;BR /&gt;
Capture everything between Exception= and a GUID, which will always be 8-4-4-4-12 alphanumeric characters.&lt;/P&gt;

&lt;P&gt;I know this is totally doable, but I am not able to get splunks version of regex to work.&lt;/P&gt;</description>
    <pubDate>Fri, 13 Mar 2015 15:56:17 GMT</pubDate>
    <dc:creator>Cuyose</dc:creator>
    <dc:date>2015-03-13T15:56:17Z</dc:date>
    <item>
      <title>Extracting field with a guid as an end anchor</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-field-with-a-guid-as-an-end-anchor/m-p/176749#M50777</link>
      <description>&lt;P&gt;For some reason I have not been able to get a field extraction to work where the end anchor will be a GUID.  Basically the events are as follows&lt;/P&gt;

&lt;P&gt;Exception=This is the exception - wrong thing here. - 32c18521-1313-41e6-8ff6-1e1fb986a321 &lt;/P&gt;

&lt;P&gt;What would the field extraction for this look like?&lt;/P&gt;

&lt;P&gt;This isn't even working for me&lt;BR /&gt;
(?i)Exception=(?P[^[0-9a-f]{8}]+)&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2015 15:38:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-field-with-a-guid-as-an-end-anchor/m-p/176749#M50777</guid>
      <dc:creator>Cuyose</dc:creator>
      <dc:date>2015-03-13T15:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting field with a guid as an end anchor</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-field-with-a-guid-as-an-end-anchor/m-p/176750#M50778</link>
      <description>&lt;P&gt;What exactly do you want extracted from your sample event?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2015 15:43:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-field-with-a-guid-as-an-end-anchor/m-p/176750#M50778</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-03-13T15:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting field with a guid as an end anchor</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-field-with-a-guid-as-an-end-anchor/m-p/176751#M50779</link>
      <description>&lt;P&gt;This is what I am attempting to extract&lt;BR /&gt;
This is the exception - wrong thing here.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2015 15:47:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-field-with-a-guid-as-an-end-anchor/m-p/176751#M50779</guid>
      <dc:creator>Cuyose</dc:creator>
      <dc:date>2015-03-13T15:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting field with a guid as an end anchor</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-field-with-a-guid-as-an-end-anchor/m-p/176752#M50780</link>
      <description>&lt;P&gt;Does the exception always end with '.'?  We can't stop at an 8-character word or we risk losing part of the exception text.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2015 15:52:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-field-with-a-guid-as-an-end-anchor/m-p/176752#M50780</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-03-13T15:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting field with a guid as an end anchor</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-field-with-a-guid-as-an-end-anchor/m-p/176753#M50781</link>
      <description>&lt;P&gt;No it does not always end with a . I want to set the logic to:&lt;BR /&gt;
Capture everything between Exception= and a GUID, which will always be 8-4-4-4-12 alphanumeric characters.&lt;/P&gt;

&lt;P&gt;I know this is totally doable, but I am not able to get splunks version of regex to work.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2015 15:56:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-field-with-a-guid-as-an-end-anchor/m-p/176753#M50781</guid>
      <dc:creator>Cuyose</dc:creator>
      <dc:date>2015-03-13T15:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting field with a guid as an end anchor</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-field-with-a-guid-as-an-end-anchor/m-p/176754#M50782</link>
      <description>&lt;P&gt;Give this a try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(?i)Exception=(?P&amp;lt;Exception&amp;gt;.*)(\s*-+\s*)\w{8}-\w{4}-\w{4}-\w{4}-\w{12}$
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 13 Mar 2015 16:00:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-field-with-a-guid-as-an-end-anchor/m-p/176754#M50782</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-03-13T16:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting field with a guid as an end anchor</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-field-with-a-guid-as-an-end-anchor/m-p/176755#M50783</link>
      <description>&lt;P&gt;This works on regex101 using your sample data.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Exception=(?P&amp;lt;exception&amp;gt;.*)(?P&amp;lt;GUID&amp;gt;.{8}-.{4}-.{4}-.{4}-.{12})
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 13 Mar 2015 16:01:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-field-with-a-guid-as-an-end-anchor/m-p/176755#M50783</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-03-13T16:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting field with a guid as an end anchor</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-field-with-a-guid-as-an-end-anchor/m-p/176756#M50784</link>
      <description>&lt;P&gt;This has worked! Thanks.  Odd though, When I was changing the field extraction in the manager, then rerunning the query, I was not noticing the extraction.  Only when I edited the existing search then ran did it get the correct extractions.  Re-pasting the original then also got the extractions.  &lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2015 16:21:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-field-with-a-guid-as-an-end-anchor/m-p/176756#M50784</guid>
      <dc:creator>Cuyose</dc:creator>
      <dc:date>2015-03-13T16:21:31Z</dc:date>
    </item>
  </channel>
</rss>

