<?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 rex help in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/need-rex-help/m-p/480900#M134753</link>
    <description>&lt;P&gt;not working&lt;/P&gt;</description>
    <pubDate>Mon, 02 Mar 2020 18:53:25 GMT</pubDate>
    <dc:creator>vikram1583</dc:creator>
    <dc:date>2020-03-02T18:53:25Z</dc:date>
    <item>
      <title>need rex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-rex-help/m-p/480896#M134749</link>
      <description>&lt;P&gt;in my event i want to extract  TLD's&lt;/P&gt;

&lt;P&gt;i want to extract: &lt;BR /&gt;
com&lt;BR /&gt;
news&lt;BR /&gt;
tech&lt;BR /&gt;
net&lt;BR /&gt;
org&lt;/P&gt;

&lt;P&gt;please help me with rex?&lt;BR /&gt;
thanks in advance&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 01:24:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-rex-help/m-p/480896#M134749</guid>
      <dc:creator>vikram1583</dc:creator>
      <dc:date>2020-03-02T01:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: need rex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-rex-help/m-p/480897#M134750</link>
      <description>&lt;P&gt;@vikram1583  What do your logs look like? Are you extracting from fields that already identified websites or email addresses or do you have a mess in your logs that you need to identify the pattern first and then the TLD? Are these URL's fully qualified, like &lt;A href="https://www.example.com/"&gt;https://www.example.com/&lt;/A&gt;, or are the more like example.com? Do they end at the TLD, or continue with parameters/directories/etc.? Details and a log sample will go a long way in people being able to help you efficiently.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 14:07:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-rex-help/m-p/480897#M134750</guid>
      <dc:creator>efavreau</dc:creator>
      <dc:date>2020-03-02T14:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: need rex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-rex-help/m-p/480898#M134751</link>
      <description>&lt;P&gt;Hi @vikram1583,&lt;/P&gt;

&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex "\w*\.(?&amp;lt;tld&amp;gt;[a-z]+)$" 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 02 Mar 2020 14:15:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-rex-help/m-p/480898#M134751</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2020-03-02T14:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: need rex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-rex-help/m-p/480899#M134752</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;rex field=your_field "(?&amp;lt;TLD&amp;gt;com|news|tech|net|org)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 02 Mar 2020 14:56:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-rex-help/m-p/480899#M134752</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-03-02T14:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: need rex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-rex-help/m-p/480900#M134753</link>
      <description>&lt;P&gt;not working&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 18:53:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-rex-help/m-p/480900#M134753</guid>
      <dc:creator>vikram1583</dc:creator>
      <dc:date>2020-03-02T18:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: need rex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-rex-help/m-p/480901#M134754</link>
      <description>&lt;P&gt;Please share some raw data.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 19:05:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-rex-help/m-p/480901#M134754</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2020-03-02T19:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: need rex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-rex-help/m-p/480902#M134755</link>
      <description>&lt;P&gt;Try this &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(?&amp;lt;TLD&amp;gt;\.\w+?)(?:$|\/)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 02 Mar 2020 19:12:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-rex-help/m-p/480902#M134755</guid>
      <dc:creator>sumanssah</dc:creator>
      <dc:date>2020-03-02T19:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: need rex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-rex-help/m-p/480903#M134756</link>
      <description>&lt;P&gt;&lt;CODE&gt;not working&lt;/CODE&gt;&lt;BR /&gt;
hec? what is "TLD" you say? &lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 21:10:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-rex-help/m-p/480903#M134756</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-03-02T21:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: need rex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-rex-help/m-p/480904#M134757</link>
      <description>&lt;P&gt;@vikram1583 I maintain that this will go better with more details and a log sample. Please edit your question with a sample log (scrub for anything sensitive). Some of these proposed solutions aren't successful against patterns such as:&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/806969/need-rex-help.html"&gt;https://answers.splunk.com/answers/806969/need-rex-help.html&lt;/A&gt; (where the valid TLD is com)&lt;BR /&gt;
&lt;A href="http://www.example.wanggou"&gt;www.example.wanggou&lt;/A&gt; (where the valid TLD would be wanggou)&lt;BR /&gt;
etc.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 21:21:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-rex-help/m-p/480904#M134757</guid>
      <dc:creator>efavreau</dc:creator>
      <dc:date>2020-03-02T21:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: need rex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-rex-help/m-p/480905#M134758</link>
      <description>&lt;P&gt;URL Toolbox: &lt;A href="https://splunkbase.splunk.com/app/2734/"&gt;https://splunkbase.splunk.com/app/2734/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2020 08:45:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-rex-help/m-p/480905#M134758</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2020-03-03T08:45:06Z</dc:date>
    </item>
  </channel>
</rss>

