<?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 Why am I receiving this error when I am trying to extract a streetname which can appear either with or without another field in front of it in the input stream? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-receiving-this-error-when-I-am-trying-to-extract-a/m-p/293902#M88729</link>
    <description>&lt;P&gt;The extraction failed. If you are extracting multiple fields, try removing one or more fields. Start with extractions that are embedded within longer text strings.&lt;BR /&gt;
Select Fields&lt;BR /&gt;
Highlight one or more values in the sample event to create fields. You can indicate one value is required, meaning it must exist in an event for the regular expression to match. Click on highlighted values in the sample event to modify them. To highlight text that is already part of an existing extraction, first turn off the existing extractions.    Learn more&lt;BR /&gt;
Feb 14 14:44:18 exnet-01a.intechnologywifi.com local1 events: EventType[Area Change] MAC[00:B3:62:BE:8E:B7] Details: Area[SS1 - CCTV193 - &lt;STRONG&gt;Eastern Esplanade&lt;/STRONG&gt;]&lt;BR /&gt;
Feb 10 13:56:29 exnet-01a.intechnologywifi.com local1 events: EventType[Area Change] MAC[A4:E4:B8:6E:DD:D2] Details: Area[SS1 - &lt;STRONG&gt;Leigh On Sea Community Centre]&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Feb 2018 14:59:21 GMT</pubDate>
    <dc:creator>ajobling1964</dc:creator>
    <dc:date>2018-02-14T14:59:21Z</dc:date>
    <item>
      <title>Why am I receiving this error when I am trying to extract a streetname which can appear either with or without another field in front of it in the input stream?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-receiving-this-error-when-I-am-trying-to-extract-a/m-p/293902#M88729</link>
      <description>&lt;P&gt;The extraction failed. If you are extracting multiple fields, try removing one or more fields. Start with extractions that are embedded within longer text strings.&lt;BR /&gt;
Select Fields&lt;BR /&gt;
Highlight one or more values in the sample event to create fields. You can indicate one value is required, meaning it must exist in an event for the regular expression to match. Click on highlighted values in the sample event to modify them. To highlight text that is already part of an existing extraction, first turn off the existing extractions.    Learn more&lt;BR /&gt;
Feb 14 14:44:18 exnet-01a.intechnologywifi.com local1 events: EventType[Area Change] MAC[00:B3:62:BE:8E:B7] Details: Area[SS1 - CCTV193 - &lt;STRONG&gt;Eastern Esplanade&lt;/STRONG&gt;]&lt;BR /&gt;
Feb 10 13:56:29 exnet-01a.intechnologywifi.com local1 events: EventType[Area Change] MAC[A4:E4:B8:6E:DD:D2] Details: Area[SS1 - &lt;STRONG&gt;Leigh On Sea Community Centre]&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 14:59:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-receiving-this-error-when-I-am-trying-to-extract-a/m-p/293902#M88729</guid>
      <dc:creator>ajobling1964</dc:creator>
      <dc:date>2018-02-14T14:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I receiving this error when I am trying to extract a streetname which can appear either with or without another field in front of it in the input stream?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-receiving-this-error-when-I-am-trying-to-extract-a/m-p/293903#M88730</link>
      <description>&lt;P&gt;Here is a solution to the regex, which considers the middle &lt;CODE&gt;- somestring&lt;/CODE&gt; to be optional:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://regex101.com/r/TrXBUL/1"&gt;https://regex101.com/r/TrXBUL/1&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;As for why your regex caused that error, you'd need to post the regex you used for anyone to give you an answer.&lt;/P&gt;

&lt;P&gt;Updated link that also grabs the middle value:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://regex101.com/r/TrXBUL/4"&gt;https://regex101.com/r/TrXBUL/4&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;It was just a case of adding a named capture group for the portion of the optional group up until the space.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 15:26:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-receiving-this-error-when-I-am-trying-to-extract-a/m-p/293903#M88730</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2018-02-14T15:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I receiving this error when I am trying to extract a streetname which can appear either with or without another field in front of it in the input stream?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-receiving-this-error-when-I-am-trying-to-extract-a/m-p/293904#M88731</link>
      <description>&lt;P&gt;that's solved it thanks. how would I extract the previous field which may or may not exist in the string ie. CCTV193 in this case&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 15:42:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-receiving-this-error-when-I-am-trying-to-extract-a/m-p/293904#M88731</guid>
      <dc:creator>ajobling1964</dc:creator>
      <dc:date>2018-02-14T15:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I receiving this error when I am trying to extract a streetname which can appear either with or without another field in front of it in the input stream?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-receiving-this-error-when-I-am-trying-to-extract-a/m-p/293905#M88732</link>
      <description>&lt;P&gt;Edited my answer with a new link to meet that need.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 16:29:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-receiving-this-error-when-I-am-trying-to-extract-a/m-p/293905#M88732</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2018-02-14T16:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I receiving this error when I am trying to extract a streetname which can appear either with or without another field in front of it in the input stream?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-receiving-this-error-when-I-am-trying-to-extract-a/m-p/293906#M88733</link>
      <description>&lt;P&gt;excellent thanks - I'd nearly worked it out!&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 16:55:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-receiving-this-error-when-I-am-trying-to-extract-a/m-p/293906#M88733</guid>
      <dc:creator>ajobling1964</dc:creator>
      <dc:date>2018-02-14T16:55:11Z</dc:date>
    </item>
  </channel>
</rss>

