<?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: rex error help in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/rex-error-help/m-p/173438#M49738</link>
    <description>&lt;P&gt;hi&lt;BR /&gt;
try this search code : &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...................................|rex field=_raw "count\(domain\)\=(?&amp;lt;count_domain&amp;gt;[^\,]+)"|table count_domain
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 11 Dec 2016 15:44:28 GMT</pubDate>
    <dc:creator>chimell</dc:creator>
    <dc:date>2016-12-11T15:44:28Z</dc:date>
    <item>
      <title>rex error help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rex-error-help/m-p/173429#M49729</link>
      <description>&lt;P&gt;The regular expression is correct according to RegExr, but i keep on getting this error&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Error in 'rex' command: Encountered the following error while compiling the regex 'count(domain)=(?&amp;lt;count(domain)&amp;gt;.*)': Regex: syntax error in subpattern name (missing terminator)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here is what i have in Splunk Search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;rex field=_raw "count(domain)=(?&amp;lt;count(domain)&amp;gt;.*)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks guys&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2014 07:07:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rex-error-help/m-p/173429#M49729</guid>
      <dc:creator>ilove275</dc:creator>
      <dc:date>2014-05-21T07:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: rex error help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rex-error-help/m-p/173430#M49730</link>
      <description>&lt;P&gt;can you provide some sample events please?&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2014 07:23:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rex-error-help/m-p/173430#M49730</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-05-21T07:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: rex error help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rex-error-help/m-p/173431#M49731</link>
      <description>&lt;P&gt;Hi ilove275,&lt;/P&gt;

&lt;P&gt;brackets inside the rex field name cause the syntax issue.changing the field name count(domain) to domain_count would help u solving the issue.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;rex field=_raw "count\(domain\)=(?&amp;lt;domain_count&amp;gt;.*)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2014 07:51:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rex-error-help/m-p/173431#M49731</guid>
      <dc:creator>rakesh_498115</dc:creator>
      <dc:date>2014-05-21T07:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: rex error help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rex-error-help/m-p/173432#M49732</link>
      <description>&lt;P&gt;sample log&lt;/P&gt;

&lt;P&gt;05/20/2014 00:00:00 +0900, search_name=AAAAA, search_now=1400606400.000, info_min_time=1400511600.000, info_max_time=1400598000.000, info_search_time=1400606401.123, count(domain)=744788, date_wday=tuesday&lt;BR /&gt;
Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:40:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rex-error-help/m-p/173432#M49732</guid>
      <dc:creator>ilove275</dc:creator>
      <dc:date>2020-09-28T16:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: rex error help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rex-error-help/m-p/173433#M49733</link>
      <description>&lt;P&gt;and don't forget to append a &lt;CODE&gt;"&lt;/CODE&gt; at the end of the regex command&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2014 07:59:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rex-error-help/m-p/173433#M49733</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-05-21T07:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: rex error help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rex-error-help/m-p/173434#M49734</link>
      <description>&lt;P&gt;field name's "count(domain)" not "domain_count"&lt;/P&gt;

&lt;P&gt;My Splunk Search&lt;BR /&gt;
index="AAAA" source="BBBB" | rex field=_raw "count(domain)=(?&lt;COUNT&gt;.&lt;EM&gt;) date_wday=(?&lt;DATE_WDAY&gt;.&lt;/DATE_WDAY&gt;&lt;/EM&gt;)"  | table date_wday count(domain)&lt;/COUNT&gt;&lt;/P&gt;

&lt;P&gt;error&lt;BR /&gt;
Error in 'rex' command: Encountered the following error while compiling the regex 'count(domain)=(?&lt;COUNT&gt;.&lt;EM&gt;) date_wday=(?&lt;DATE_WDAY&gt;.&lt;/DATE_WDAY&gt;&lt;/EM&gt;)': Regex: syntax error in subpattern name (missing terminator)&lt;/COUNT&gt;&lt;/P&gt;

&lt;P&gt;Thanks rakesh_498115&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:41:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rex-error-help/m-p/173434#M49734</guid>
      <dc:creator>ilove275</dc:creator>
      <dc:date>2020-09-28T16:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: rex error help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rex-error-help/m-p/173435#M49735</link>
      <description>&lt;P&gt;it doesn't come out the File name "domain_count" when I use "Rename" commamd&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2014 14:51:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rex-error-help/m-p/173435#M49735</guid>
      <dc:creator>ilove275</dc:creator>
      <dc:date>2014-05-21T14:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: rex error help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rex-error-help/m-p/173436#M49736</link>
      <description>&lt;P&gt;Try this (run anywhere)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index="AAAA" source="BBBB" | rex field=_raw "count\(domain\)=(?&amp;lt;domain_count&amp;gt;.*)," | rename domain_count as count(domain)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 21 May 2014 20:22:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rex-error-help/m-p/173436#M49736</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-05-21T20:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: rex error help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rex-error-help/m-p/173437#M49737</link>
      <description>&lt;P&gt;Thanks for your help&lt;BR /&gt;
^^&lt;/P&gt;</description>
      <pubDate>Thu, 22 May 2014 00:05:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rex-error-help/m-p/173437#M49737</guid>
      <dc:creator>ilove275</dc:creator>
      <dc:date>2014-05-22T00:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: rex error help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rex-error-help/m-p/173438#M49738</link>
      <description>&lt;P&gt;hi&lt;BR /&gt;
try this search code : &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...................................|rex field=_raw "count\(domain\)\=(?&amp;lt;count_domain&amp;gt;[^\,]+)"|table count_domain
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 11 Dec 2016 15:44:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rex-error-help/m-p/173438#M49738</guid>
      <dc:creator>chimell</dc:creator>
      <dc:date>2016-12-11T15:44:28Z</dc:date>
    </item>
  </channel>
</rss>

