<?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: RegEx _raw extraction help in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/RegEx-raw-extraction-help/m-p/151824#M42523</link>
    <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(?&amp;lt;cam_name&amp;gt;[^=]+)(?=\son\sencoder)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;usage:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search | rex "(?&amp;lt;cam_name&amp;gt;[^=]+)(?=\son\sencoder)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 14 Feb 2014 19:47:22 GMT</pubDate>
    <dc:creator>sbrant_splunk</dc:creator>
    <dc:date>2014-02-14T19:47:22Z</dc:date>
    <item>
      <title>RegEx _raw extraction help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/RegEx-raw-extraction-help/m-p/151823#M42522</link>
      <description>&lt;P&gt;I am trying to extract info from the _raw result of my Splunk query.  Currently my _raw result is:&lt;BR /&gt;
&lt;STRONG&gt;_raw="2014-02-13 13:02:10,3,VIDEO_STREAMING,CAMERA_6,\"Video has stopped or is intermittent for camera 6='Tool Corral Rear Aisle' on encoder 192.168.2.101.\"&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;I would like to extract the Camera Name, which in this case is &lt;STRONG&gt;'Tool Corral Rear Aisle'&lt;/STRONG&gt;, from the above _raw string.&lt;/P&gt;

&lt;P&gt;Can anyone help?&lt;/P&gt;

&lt;P&gt;Thanks so much!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:53:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/RegEx-raw-extraction-help/m-p/151823#M42522</guid>
      <dc:creator>kdb8916</dc:creator>
      <dc:date>2020-09-28T15:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: RegEx _raw extraction help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/RegEx-raw-extraction-help/m-p/151824#M42523</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(?&amp;lt;cam_name&amp;gt;[^=]+)(?=\son\sencoder)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;usage:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search | rex "(?&amp;lt;cam_name&amp;gt;[^=]+)(?=\son\sencoder)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Feb 2014 19:47:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/RegEx-raw-extraction-help/m-p/151824#M42523</guid>
      <dc:creator>sbrant_splunk</dc:creator>
      <dc:date>2014-02-14T19:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: RegEx _raw extraction help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/RegEx-raw-extraction-help/m-p/151825#M42524</link>
      <description>&lt;P&gt;Thank you for your response.&lt;/P&gt;

&lt;P&gt;When I run that code I am getting an error msg - &lt;STRONG&gt;Error in 'SearchParser': Missing a search command before '^'.&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;The total snippet that I entered in my existing query based on your input was: &lt;STRONG&gt;rex field=_raw (?&lt;CAMERANAME&gt;[^=]+)(?=\son\sencoder)&lt;/CAMERANAME&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2014 19:55:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/RegEx-raw-extraction-help/m-p/151825#M42524</guid>
      <dc:creator>kdb8916</dc:creator>
      <dc:date>2014-02-14T19:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: RegEx _raw extraction help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/RegEx-raw-extraction-help/m-p/151826#M42525</link>
      <description>&lt;P&gt;That didn't seem to translate correct once I hit the post comment button ... note that I did use the slashes '\' that you suggested in your reply.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2014 19:57:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/RegEx-raw-extraction-help/m-p/151826#M42525</guid>
      <dc:creator>kdb8916</dc:creator>
      <dc:date>2014-02-14T19:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: RegEx _raw extraction help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/RegEx-raw-extraction-help/m-p/151827#M42526</link>
      <description>&lt;P&gt;When using the Rex command, the regular expression must be in quotes.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2014 20:39:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/RegEx-raw-extraction-help/m-p/151827#M42526</guid>
      <dc:creator>sbrant_splunk</dc:creator>
      <dc:date>2014-02-14T20:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: RegEx _raw extraction help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/RegEx-raw-extraction-help/m-p/151828#M42527</link>
      <description>&lt;P&gt;Yes that would be consistent with the other Rex commands I was using ... my apologies for that oversight and I thank you both for your assistance.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2014 14:08:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/RegEx-raw-extraction-help/m-p/151828#M42527</guid>
      <dc:creator>kdb8916</dc:creator>
      <dc:date>2014-02-17T14:08:30Z</dc:date>
    </item>
  </channel>
</rss>

