<?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 in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Regex-Error/m-p/22967#M4023</link>
    <description>&lt;P&gt;Depending on what you're trying to do you might be better off just searching for the IP addresses than using regex command.   status="404" host="10.*"&lt;/P&gt;</description>
    <pubDate>Mon, 06 Jun 2011 17:01:48 GMT</pubDate>
    <dc:creator>sideview</dc:creator>
    <dc:date>2011-06-06T17:01:48Z</dc:date>
    <item>
      <title>Regex Error</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-Error/m-p/22965#M4021</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am trying to use simple regex to find clients with specific IPs. My regex looks like&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;CODE&gt;status=404 | regex host=*10.\d\d\d.\d\d\d.\d\d\d*&lt;/CODE&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;When I run the search in splunk it gives me error which looks like -&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;CODE&gt;Error in 'SearchOperator:regex': The regex '*10.\d\d\d.\d\d\d.\d\d\d*' is invalid. nothing to repeat.&lt;/CODE&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;I am completely new to splunk. So, any help is appreciated.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Rahil&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2011 16:23:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-Error/m-p/22965#M4021</guid>
      <dc:creator>rahiparikh</dc:creator>
      <dc:date>2011-06-06T16:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: Regex Error</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-Error/m-p/22966#M4022</link>
      <description>&lt;P&gt;Your problem might be that you didnt escape the dots(.) in your regular expression. Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | regex host="10\.\d+\.\d+\.\d+"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 06 Jun 2011 16:49:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-Error/m-p/22966#M4022</guid>
      <dc:creator>carmackd</dc:creator>
      <dc:date>2011-06-06T16:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: Regex Error</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-Error/m-p/22967#M4023</link>
      <description>&lt;P&gt;Depending on what you're trying to do you might be better off just searching for the IP addresses than using regex command.   status="404" host="10.*"&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2011 17:01:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-Error/m-p/22967#M4023</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2011-06-06T17:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: Regex Error</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-Error/m-p/22968#M4024</link>
      <description>&lt;P&gt;Thanks for the help. I just copied the text from Splunk User Manual but didn't know that I need to escape the dots.&lt;/P&gt;

&lt;P&gt;Thanks again for you help. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2011 17:05:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-Error/m-p/22968#M4024</guid>
      <dc:creator>rahiparikh</dc:creator>
      <dc:date>2011-06-06T17:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: Regex Error</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-Error/m-p/22969#M4025</link>
      <description>&lt;P&gt;No problem! Glad to help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2011 18:15:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-Error/m-p/22969#M4025</guid>
      <dc:creator>carmackd</dc:creator>
      <dc:date>2011-06-06T18:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: Regex Error</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-Error/m-p/22970#M4026</link>
      <description>&lt;P&gt;The prior poster gave good advice about an additional problem.  The particular error shown, "nothing to repeat", was referring to the use of an asterisk as the first character.  The asterisk means "zero or more of the preceding token" (e.g. the most recent discrete thing just to the left of the asterisk).  Because the given regex started with an asterisk, Splunk threw an error because there was nothing to the left of the asterisk to repeat.&lt;/P&gt;</description>
      <pubDate>Sat, 27 Aug 2011 07:26:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-Error/m-p/22970#M4026</guid>
      <dc:creator>phatfingers</dc:creator>
      <dc:date>2011-08-27T07:26:37Z</dc:date>
    </item>
  </channel>
</rss>

