<?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: Need help with rex in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-rex/m-p/182632#M52621</link>
    <description>&lt;P&gt;That is just a syntax to get example data to work on(since I don't have sample logs). Just replace everything before "regex" command with your base search.&lt;/P&gt;</description>
    <pubDate>Thu, 29 May 2014 20:19:01 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2014-05-29T20:19:01Z</dc:date>
    <item>
      <title>Need help with rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-rex/m-p/182628#M52617</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;i am using this expression -  base search | rex field=uri "better\?q=(?&lt;Q&gt;[^&amp;amp;]+)$"&lt;/Q&gt;&lt;/P&gt;

&lt;P&gt;and i was expecting to return events which ends with having only q value but not having others as shown below. &lt;/P&gt;

&lt;P&gt;better?q=GARAGE+DOOR+9+FT+WIDE&lt;/P&gt;

&lt;P&gt;but it is showing all the events which have values after &amp;amp; (startIndex=000041&amp;amp;itemsperpage=0030)&lt;/P&gt;

&lt;P&gt;better?q=GARAGE+DOOR+9+FT+WIDE&amp;amp;startIndex=000041&amp;amp;itemsperpage=0030&lt;/P&gt;

&lt;P&gt;Any idea what i am missing here? &lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2014 16:50:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-with-rex/m-p/182628#M52617</guid>
      <dc:creator>xvxt006</dc:creator>
      <dc:date>2014-05-29T16:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-rex/m-p/182629#M52618</link>
      <description>&lt;P&gt;I had success in RegExr with this string:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;better\?q=([^&amp;amp;]+)&amp;amp;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 May 2014 17:07:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-with-rex/m-p/182629#M52618</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2014-05-29T17:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-rex/m-p/182630#M52619</link>
      <description>&lt;P&gt;Try this (run anywhere)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|stats count | eval uri="better?q=GARAGE+DOOR+9+FT+WIDE##better?q=GARAGE+DOOR+9+FT+WIDE&amp;amp;startIndex=000041&amp;amp;itemsperpage=0030" | table uri | makemv delim="##" uri | mvexpand uri  
| regex uri="better\?q=([^&amp;amp;]+)$"


&amp;lt;&amp;lt;Your base search with field uri &amp;gt;&amp;gt;  | regex uri="better\?q=([^&amp;amp;]+)$"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 May 2014 17:33:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-with-rex/m-p/182630#M52619</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-05-29T17:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-rex/m-p/182631#M52620</link>
      <description>&lt;P&gt;i see that you are using eval for the acutal uri i gave. But I just gave an example to show you what i want. I have lot of events like that. I cannot put all of those in my search query right?&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2014 20:08:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-with-rex/m-p/182631#M52620</guid>
      <dc:creator>xvxt006</dc:creator>
      <dc:date>2014-05-29T20:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-rex/m-p/182632#M52621</link>
      <description>&lt;P&gt;That is just a syntax to get example data to work on(since I don't have sample logs). Just replace everything before "regex" command with your base search.&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2014 20:19:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-with-rex/m-p/182632#M52621</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-05-29T20:19:01Z</dc:date>
    </item>
  </channel>
</rss>

