<?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 Domain/URI regex in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Domain-URI-regex/m-p/171147#M48997</link>
    <description>&lt;P&gt;Hi, I am kind of new to regex and trying to figure out how to construct a regex to match pattern from the web access logs. Below is my requirement. &lt;/P&gt;

&lt;P&gt;(1) Match word ("mail" OR "webmail" OR "OWA") in domain/subdomain. &lt;BR /&gt;
   Example: mail.exampledomain.com&lt;BR /&gt;
                mail.sub1.exampledomain.com&lt;BR /&gt;
                mail.sub2.sub1.exampledomain.com&lt;BR /&gt;
                mail.sub3.sub2.sub1.exampledomain.com&lt;BR /&gt;
(2) Match word "OWA" anywhere in the URI string &lt;BR /&gt;
   Example: exampledomain.com/OWA/login.aspx&lt;BR /&gt;
                exampledomain.com/sub/OWA/login.aspx&lt;/P&gt;</description>
    <pubDate>Mon, 09 Mar 2015 14:05:01 GMT</pubDate>
    <dc:creator>Sig1nt</dc:creator>
    <dc:date>2015-03-09T14:05:01Z</dc:date>
    <item>
      <title>Domain/URI regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Domain-URI-regex/m-p/171147#M48997</link>
      <description>&lt;P&gt;Hi, I am kind of new to regex and trying to figure out how to construct a regex to match pattern from the web access logs. Below is my requirement. &lt;/P&gt;

&lt;P&gt;(1) Match word ("mail" OR "webmail" OR "OWA") in domain/subdomain. &lt;BR /&gt;
   Example: mail.exampledomain.com&lt;BR /&gt;
                mail.sub1.exampledomain.com&lt;BR /&gt;
                mail.sub2.sub1.exampledomain.com&lt;BR /&gt;
                mail.sub3.sub2.sub1.exampledomain.com&lt;BR /&gt;
(2) Match word "OWA" anywhere in the URI string &lt;BR /&gt;
   Example: exampledomain.com/OWA/login.aspx&lt;BR /&gt;
                exampledomain.com/sub/OWA/login.aspx&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2015 14:05:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Domain-URI-regex/m-p/171147#M48997</guid>
      <dc:creator>Sig1nt</dc:creator>
      <dc:date>2015-03-09T14:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: Domain/URI regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Domain-URI-regex/m-p/171148#M48998</link>
      <description>&lt;P&gt;You should post some example data.&lt;/P&gt;

&lt;P&gt;Anyway, Splunk extracts by default the access logs fields if you use the default sourcetype&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2015 14:10:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Domain-URI-regex/m-p/171148#M48998</guid>
      <dc:creator>gfuente</dc:creator>
      <dc:date>2015-03-09T14:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: Domain/URI regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Domain-URI-regex/m-p/171149#M48999</link>
      <description>&lt;P&gt;May we see some examples of your logs, please?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2015 14:10:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Domain-URI-regex/m-p/171149#M48999</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-03-09T14:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: Domain/URI regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Domain-URI-regex/m-p/171150#M49000</link>
      <description>&lt;P&gt;Hi Sig1nt,&lt;/P&gt;

&lt;P&gt;there are tons of online regex tools like &lt;A href="https://regex101.com/"&gt;https://regex101.com/&lt;/A&gt; or &lt;A href="http://regexr.com/"&gt;http://regexr.com/&lt;/A&gt; where you can test. &lt;BR /&gt;
To answer your questions, see the regex below:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;CODE&gt;(mail)|(webmail)|(OWA)&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;CODE&gt;OWA&lt;/CODE&gt;
Using the mentioned tools can also provide explanations what happens for each regex.&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2015 14:15:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Domain-URI-regex/m-p/171150#M49000</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-03-09T14:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: Domain/URI regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Domain-URI-regex/m-p/171151#M49001</link>
      <description>&lt;P&gt;Hi, Thank you for your response. Please find below couple of examples of OWA. &lt;/P&gt;

&lt;P&gt;xx.xx.xx.xx - - [04/Mar/2015:04:12:22 +0100] "GET /owa/auth/logon.aspx? HTTP/1.1" 200 104 "&lt;BR /&gt;
&lt;A href="https://www.owamail.reading.ac.uk/owa/auth/logon.aspx?replaceCurrent=1&amp;amp;url=https%3a%2f%2fwww.owamail.reading.ac.uk%2fowa%2f"&gt;https://www.owamail.reading.ac.uk/owa/auth/logon.aspx?replaceCurrent=1&amp;amp;url=https%3a%2f%2fwww.owamail.reading.ac.uk%2fowa%2f&lt;/A&gt;" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.20) Gecko/20081217 Firefox/2.0.0.20"&lt;/P&gt;

&lt;P&gt;xx.xx.xx.xx - - [06/Mar/2015:09:58:43 +0100] "GET /asp/Manager/Login.asp?owa=1 HTTP/1.1" 200 104 "&lt;A href="https://controlpanel.msoutlookonline.net/asp/Manager/Login.asp?owa=1id=2"&gt;https://controlpanel.msoutlookonline.net/asp/Manager/Login.asp?owa=1id=2&lt;/A&gt;" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US;) Gecko/20081217 Firefox/2.0.0.20"&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2015 14:36:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Domain-URI-regex/m-p/171151#M49001</guid>
      <dc:creator>Sig1nt</dc:creator>
      <dc:date>2015-03-09T14:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Domain/URI regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Domain-URI-regex/m-p/171152#M49002</link>
      <description>&lt;P&gt;Hi MuS, &lt;/P&gt;

&lt;P&gt;Thank you for your time. I will take a look at these sites. &lt;/P&gt;

&lt;P&gt;Kind regards, &lt;BR /&gt;
Sig1nt&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2015 14:38:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Domain-URI-regex/m-p/171152#M49002</guid>
      <dc:creator>Sig1nt</dc:creator>
      <dc:date>2015-03-09T14:38:23Z</dc:date>
    </item>
  </channel>
</rss>

