<?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/368070#M108495</link>
    <description>&lt;P&gt;Nothing backwards about it.  We want a chunk that occurs between a slash &lt;CODE&gt;"/"&lt;/CODE&gt; and the letters &lt;CODE&gt;" HTTP"&lt;/CODE&gt;.  We want to make sure not to match the space &lt;CODE&gt;\s&lt;/CODE&gt; or any other slashes &lt;CODE&gt;\/&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;Thus, we create a character type that matches anything but slash or whitespace &lt;CODE&gt;[^\/\s]&lt;/CODE&gt;, and capture however many of them there are, (but minimum one &lt;CODE&gt;+&lt;/CODE&gt;)  between our endpoints.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   | rex "\/(?&amp;lt;mymatch&amp;gt;[^\/\s]+)\sHTTP"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Voila.&lt;/P&gt;</description>
    <pubDate>Wed, 27 Sep 2017 23:49:16 GMT</pubDate>
    <dc:creator>DalJeanis</dc:creator>
    <dc:date>2017-09-27T23:49:16Z</dc:date>
    <item>
      <title>Another regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Another-regex/m-p/368069#M108494</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have this data&lt;/P&gt;

&lt;P&gt;10.210.192.15 - - [26/Sep/2017:19:59:59 -0400] "POST /rest/icontrol/sites/315568/network/instances/100876ffe9572a.0/functions/disarm HTTP/1.1" 202 9 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_3 like Mac OS X) AppleWebKit/603.3.8 (KHTML, like Gecko) Mobile/14G60" "&lt;/P&gt;

&lt;P&gt;10.210.192.5 - - [26/Sep/2017:19:59:59 -0400] "POST /rest/icontrol/sites/4793/network/instances/140024460000052928.10.0/functions/thermostatStatus HTTP/1.1" 202 9 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_3 like Mac OS X) AppleWebKit/603.3.8 (KHTML, like Gecko) Mobile/14G60" "-"  "-"&lt;/P&gt;

&lt;P&gt;6:59:59.000 PM&lt;BR /&gt;&lt;BR /&gt;
 10.210.192.15 - - [26/Sep/2017:19:59:59 -0400] "GET /rest/icontrol/sites/4793/network/lights/getAllLightingStatus HTTP/1.1" 202 9 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_3 like Mac OS X) AppleWebKit/603.3.8 (KHTML, like Gecko) Mobile/14G60" "-"  "-"&lt;/P&gt;

&lt;P&gt;And I think I need to do a backwards match (unless there is a better way).  I need to match&lt;/P&gt;

&lt;P&gt;disarm   in the first event&lt;BR /&gt;
thermostatStatus   in the second event&lt;BR /&gt;
getAllLightingStatus   in the third event&lt;/P&gt;

&lt;P&gt;I'm ok with regex but trying to wrap my mind around how to search backwards throws me for a loop!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:02:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Another-regex/m-p/368069#M108494</guid>
      <dc:creator>dbcase</dc:creator>
      <dc:date>2020-09-29T16:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Another regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Another-regex/m-p/368070#M108495</link>
      <description>&lt;P&gt;Nothing backwards about it.  We want a chunk that occurs between a slash &lt;CODE&gt;"/"&lt;/CODE&gt; and the letters &lt;CODE&gt;" HTTP"&lt;/CODE&gt;.  We want to make sure not to match the space &lt;CODE&gt;\s&lt;/CODE&gt; or any other slashes &lt;CODE&gt;\/&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;Thus, we create a character type that matches anything but slash or whitespace &lt;CODE&gt;[^\/\s]&lt;/CODE&gt;, and capture however many of them there are, (but minimum one &lt;CODE&gt;+&lt;/CODE&gt;)  between our endpoints.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   | rex "\/(?&amp;lt;mymatch&amp;gt;[^\/\s]+)\sHTTP"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Voila.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 23:49:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Another-regex/m-p/368070#M108495</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-09-27T23:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Another regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Another-regex/m-p/368071#M108496</link>
      <description>&lt;P&gt;wow, that is pretty slick&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2017 15:22:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Another-regex/m-p/368071#M108496</guid>
      <dc:creator>dbcase</dc:creator>
      <dc:date>2017-09-28T15:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: Another regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Another-regex/m-p/368072#M108497</link>
      <description>&lt;P&gt;@dbcase - It's all in learning how to look at it.  Sometimes you just have to take three steps back.  Sometimes you have to cross your eyes.  Sometimes you have to get out a chainsaw and cut a wall out of the way.  &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2017 16:27:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Another-regex/m-p/368072#M108497</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-09-28T16:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: Another regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Another-regex/m-p/368073#M108498</link>
      <description>&lt;P&gt;I can't wait to use the chainsaw!   &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2017 23:01:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Another-regex/m-p/368073#M108498</guid>
      <dc:creator>dbcase</dc:creator>
      <dc:date>2017-09-28T23:01:39Z</dc:date>
    </item>
  </channel>
</rss>

