<?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 error only when saving to summary index in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/regex-error-only-when-saving-to-summary-index/m-p/270646#M81463</link>
    <description>&lt;P&gt;I don't see any fields extracted using name capturing groups in your regex ( like &lt;CODE&gt;(?&amp;lt;fieldname&amp;gt;someregex+)&lt;/CODE&gt; ). Did you miss while copying the query OR editor truncated it?&lt;/P&gt;</description>
    <pubDate>Thu, 26 May 2016 16:42:35 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2016-05-26T16:42:35Z</dc:date>
    <item>
      <title>regex error only when saving to summary index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-error-only-when-saving-to-summary-index/m-p/270644#M81461</link>
      <description>&lt;P&gt;This is my query. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=snaptor sourcetype=AccessApp
| fillnull value=NULL
| eval query_string = upper(query_string)
| fields uri, productid, query_string  
| rex field=query_string "(SYMBOL=|SYMBOLS=|P1=|P2=)+(?[.:\-\w]+(,[.:\-\w]+)*|[\w])" 
| eval syms=upper(syms) 
| eval syms = urldecode(syms) 
| rex field=syms mode=sed "s/\+/,/g"
| makemv delim="," syms 
| mvexpand syms
| stats count(uri) by productid, uri
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It works fine until I try to write the results to a summary index and that's when I see this error:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Error in 'rex' command: Regex match error, please check log 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The only thing I can find in the log is this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;05-26-2016 03:04:23.204 ERROR dispatchRunner - RunDispatch::runDispatchThread threw error: Error in 'rex' command: Regex match error, please check log
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but then again I'm not great at interpreting the log.  Is there something wrong with my regex?  Like I said it works outside the summary index.&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2016 15:58:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-error-only-when-saving-to-summary-index/m-p/270644#M81461</guid>
      <dc:creator>billycote</dc:creator>
      <dc:date>2016-05-26T15:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: regex error only when saving to summary index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-error-only-when-saving-to-summary-index/m-p/270645#M81462</link>
      <description>&lt;P&gt;How &lt;EM&gt;exactly&lt;/EM&gt; are you "trying to write the results to a summary index"?&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2016 16:17:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-error-only-when-saving-to-summary-index/m-p/270645#M81462</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-05-26T16:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: regex error only when saving to summary index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-error-only-when-saving-to-summary-index/m-p/270646#M81463</link>
      <description>&lt;P&gt;I don't see any fields extracted using name capturing groups in your regex ( like &lt;CODE&gt;(?&amp;lt;fieldname&amp;gt;someregex+)&lt;/CODE&gt; ). Did you miss while copying the query OR editor truncated it?&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2016 16:42:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-error-only-when-saving-to-summary-index/m-p/270646#M81463</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-05-26T16:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: regex error only when saving to summary index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-error-only-when-saving-to-summary-index/m-p/270647#M81464</link>
      <description>&lt;P&gt;I think @somesoni2 is on to something.  It is quite possible that there are 2 different RegEx parsers and one (non-SI) doesn't care if you capture things without naming them but then the other one (SI) does care.  In any case, try adding names like he indicates.&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2016 16:49:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-error-only-when-saving-to-summary-index/m-p/270647#M81464</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-05-26T16:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: regex error only when saving to summary index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-error-only-when-saving-to-summary-index/m-p/270648#M81465</link>
      <description>&lt;P&gt;Hmm... . Maybe the web doesn't like the &amp;lt; in there but this should have been in the original post.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex field=query_string "(SYMBOL=|SYMBOLS=|P1=|P2=)+(?&amp;lt;syms&amp;gt;[.:\-\w]+(,[.:\-\w]+)*|[\w])" 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 May 2016 16:57:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-error-only-when-saving-to-summary-index/m-p/270648#M81465</guid>
      <dc:creator>billycote</dc:creator>
      <dc:date>2016-05-26T16:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: regex error only when saving to summary index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-error-only-when-saving-to-summary-index/m-p/270649#M81466</link>
      <description>&lt;P&gt;scheduled search with summary index enabled.&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2016 16:59:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-error-only-when-saving-to-summary-index/m-p/270649#M81466</guid>
      <dc:creator>billycote</dc:creator>
      <dc:date>2016-05-26T16:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: regex error only when saving to summary index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-error-only-when-saving-to-summary-index/m-p/270650#M81467</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;| rex field=query_string "(SYMBOL=|SYMBOLS=|P1=|P2=)+(?&amp;lt;syms&amp;gt;[.:\-\w]+(,[.:\-\w]+)*|[\w])" 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 May 2016 17:19:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-error-only-when-saving-to-summary-index/m-p/270650#M81467</guid>
      <dc:creator>billycote</dc:creator>
      <dc:date>2016-05-26T17:19:08Z</dc:date>
    </item>
  </channel>
</rss>

