<?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: Another regex in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Another-regex/m-p/373413#M109813</link>
    <description>&lt;P&gt;Tried this one too..... close but still not quite it&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;\/(?&amp;lt;function&amp;gt;[^\/\s]+)(\?|\sHTTP)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 03 Oct 2017 17:27:22 GMT</pubDate>
    <dc:creator>dbcase</dc:creator>
    <dc:date>2017-10-03T17:27:22Z</dc:date>
    <item>
      <title>Another regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Another-regex/m-p/373412#M109812</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have this data&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;10.210.192.15 - - [02/Oct/2017:19:59:59 -0400] "GET /rest/icontrol/sites/278318/eventsByDay?startDate=2017-10-01&amp;amp;endDate=2017-10-01&amp;amp;maxResults=65536 HTTP/1.1" 200 16242 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_3 like Mac OS X) AppleWebKit/603.3.8 (KHTML, like Gecko) Mobile/14G60" "-"  "-"


10.210.192.15 - - [02/Oct/2017:19:59:59 -0400] "GET /rest/icontrol/sites/304496/templates/triggerTemplates HTTP/1.1" 401 6 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_3 like Mac OS X) AppleWebKit/603.3.8 (KHTML, like Gecko) Mobile/14G60" "-"  "-"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I need to get "eventsByDay" from the first line and "TriggerTemplates" from the second line&lt;/P&gt;

&lt;P&gt;I've tried this regex &lt;/P&gt;

&lt;P&gt;rex "\/(?[^\/\s]+)\sHTTP"   (this one works for the second one just fine)&lt;BR /&gt;
              rex "\/(?&lt;FUNCTION&gt;[^\/\s]+)\?"  (this one works for the first line just fine)&lt;/FUNCTION&gt;&lt;/P&gt;

&lt;P&gt;I'm running into trouble on how to combine the 2 regex into one.  Any thoughts?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2017 17:11:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Another-regex/m-p/373412#M109812</guid>
      <dc:creator>dbcase</dc:creator>
      <dc:date>2017-10-03T17:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: Another regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Another-regex/m-p/373413#M109813</link>
      <description>&lt;P&gt;Tried this one too..... close but still not quite it&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;\/(?&amp;lt;function&amp;gt;[^\/\s]+)(\?|\sHTTP)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 03 Oct 2017 17:27:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Another-regex/m-p/373413#M109813</guid>
      <dc:creator>dbcase</dc:creator>
      <dc:date>2017-10-03T17:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: Another regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Another-regex/m-p/373414#M109814</link>
      <description>&lt;P&gt;This appears to work with your 2 examples:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;\/(?&amp;lt;function&amp;gt;\w*)(\s|\?)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 03 Oct 2017 18:33:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Another-regex/m-p/373414#M109814</guid>
      <dc:creator>chanfoli</dc:creator>
      <dc:date>2017-10-03T18:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: Another regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Another-regex/m-p/373415#M109815</link>
      <description>&lt;P&gt;Hi Chanfoli,&lt;/P&gt;

&lt;P&gt;Wow, many thanks!  Worked like a champ!&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2017 19:03:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Another-regex/m-p/373415#M109815</guid>
      <dc:creator>dbcase</dc:creator>
      <dc:date>2017-10-03T19:03:27Z</dc:date>
    </item>
  </channel>
</rss>

