<?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: What is causing the Rex Raw c-ip syntax error? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/What-is-causing-the-Rex-Raw-c-ip-syntax-error/m-p/348259#M103128</link>
    <description>&lt;P&gt;The command is:&lt;/P&gt;

&lt;P&gt;index = bcoat | head 1 | rex field=_raw "(?&lt;CODE&gt;&amp;lt;&lt;/CODE&gt;c-ip&lt;CODE&gt;&amp;gt;&lt;/CODE&gt;\d+.\d+.\d+.\d+)"&lt;/P&gt;

&lt;P&gt;blue coat log snippet is:&lt;BR /&gt;
[18/04/2018:12:49:17 GMT] 12:49:17 time-taken=52 c-ip=173.18.293.215 sc-filter-result=OBSERVED&lt;/P&gt;</description>
    <pubDate>Wed, 18 Apr 2018 13:56:53 GMT</pubDate>
    <dc:creator>brdr</dc:creator>
    <dc:date>2018-04-18T13:56:53Z</dc:date>
    <item>
      <title>What is causing the Rex Raw c-ip syntax error?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-causing-the-Rex-Raw-c-ip-syntax-error/m-p/348257#M103126</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;I'm getting error at search time: Error in 'rex' command: Encountered the following error while compiling the regex '(?\d+.\d+.\d+.\d+)': Regex: syntax error in subpattern name (missing terminator) &lt;/P&gt;

&lt;P&gt;My rex expression is this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=bcoat_eo | head 1 | rex field=_raw "(?\d+\.\d+\.\d+\.\d+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Blue log snippet is :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[18/04/2018:12:49:17 GMT] 12:49:17 time-taken=52 c-ip=173.18.293.215 sc-filter-result=OBSERVED
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What am I doing wrong? Is it the '-' between the &amp;lt;&amp;gt;? If so how do i escape?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 12:54:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-causing-the-Rex-Raw-c-ip-syntax-error/m-p/348257#M103126</guid>
      <dc:creator>brdr</dc:creator>
      <dc:date>2018-04-18T12:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: What is causing the Rex Raw c-ip syntax error?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-causing-the-Rex-Raw-c-ip-syntax-error/m-p/348258#M103127</link>
      <description>&lt;P&gt;Can you edit your post and wrap code and regex snippets with the code &lt;CODE&gt;101010&lt;/CODE&gt; button or single backticks on each side? Some of the important part is getting eaten by syntax filters right now. &lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 13:04:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-causing-the-Rex-Raw-c-ip-syntax-error/m-p/348258#M103127</guid>
      <dc:creator>elliotproebstel</dc:creator>
      <dc:date>2018-04-18T13:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: What is causing the Rex Raw c-ip syntax error?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-causing-the-Rex-Raw-c-ip-syntax-error/m-p/348259#M103128</link>
      <description>&lt;P&gt;The command is:&lt;/P&gt;

&lt;P&gt;index = bcoat | head 1 | rex field=_raw "(?&lt;CODE&gt;&amp;lt;&lt;/CODE&gt;c-ip&lt;CODE&gt;&amp;gt;&lt;/CODE&gt;\d+.\d+.\d+.\d+)"&lt;/P&gt;

&lt;P&gt;blue coat log snippet is:&lt;BR /&gt;
[18/04/2018:12:49:17 GMT] 12:49:17 time-taken=52 c-ip=173.18.293.215 sc-filter-result=OBSERVED&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 13:56:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-causing-the-Rex-Raw-c-ip-syntax-error/m-p/348259#M103128</guid>
      <dc:creator>brdr</dc:creator>
      <dc:date>2018-04-18T13:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: What is causing the Rex Raw c-ip syntax error?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-causing-the-Rex-Raw-c-ip-syntax-error/m-p/348260#M103129</link>
      <description>&lt;P&gt;Try replacing the hyphen with an underscore. It's not good practice to assign a field name in Splunk with a hyphen anyway. Do this instead:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index = bcoat 
| head 1 
| rex field=_raw "(?&amp;lt;c_ip&amp;gt;\d+.\d+.\d+.\d+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Apr 2018 14:08:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-causing-the-Rex-Raw-c-ip-syntax-error/m-p/348260#M103129</guid>
      <dc:creator>elliotproebstel</dc:creator>
      <dc:date>2018-04-18T14:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: What is causing the Rex Raw c-ip syntax error?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-causing-the-Rex-Raw-c-ip-syntax-error/m-p/348261#M103130</link>
      <description>&lt;P&gt;thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 14:19:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-causing-the-Rex-Raw-c-ip-syntax-error/m-p/348261#M103130</guid>
      <dc:creator>brdr</dc:creator>
      <dc:date>2018-04-18T14:19:04Z</dc:date>
    </item>
  </channel>
</rss>

