<?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: regex in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Can-someone-help-with-regex-to-extract-new-field/m-p/638730#M221319</link>
    <description>&lt;P&gt;Here's an example - is this what you are after with the rex statement?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval site="site: mclaudelinemugasqiln.platinilemu.com:1227"
| rex field=site "site:\s?(?&amp;lt;domain&amp;gt;.*)"&lt;/LI-CODE&gt;&lt;P&gt;This assumes that the site field contains that entire string, i.e. "site: xxx" where xxx is the domain you want to extract.&lt;/P&gt;&lt;P&gt;This creates a new field called domain.&lt;/P&gt;</description>
    <pubDate>Tue, 04 Apr 2023 23:21:20 GMT</pubDate>
    <dc:creator>bowesmana</dc:creator>
    <dc:date>2023-04-04T23:21:20Z</dc:date>
    <item>
      <title>Can someone help with regex to extract new field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-someone-help-with-regex-to-extract-new-field/m-p/638713#M221312</link>
      <description>&lt;P&gt;Hello Team,&lt;/P&gt;
&lt;P&gt;can anyone help me with the extraction of new field&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;input: site: mclaudelinemugasqiln.platinilemu.com:1227&lt;/P&gt;
&lt;P&gt;&amp;nbsp;site is a field&lt;/P&gt;
&lt;P&gt;domain is&amp;nbsp;mclaudelinemugasqiln.platinilemu.com:1227&lt;/P&gt;
&lt;P&gt;i want this output:&amp;nbsp;mclaudelinemugasqiln.platinilemu.com:1227&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 16:28:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-someone-help-with-regex-to-extract-new-field/m-p/638713#M221312</guid>
      <dc:creator>pacifiquen</dc:creator>
      <dc:date>2023-04-05T16:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-someone-help-with-regex-to-extract-new-field/m-p/638730#M221319</link>
      <description>&lt;P&gt;Here's an example - is this what you are after with the rex statement?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval site="site: mclaudelinemugasqiln.platinilemu.com:1227"
| rex field=site "site:\s?(?&amp;lt;domain&amp;gt;.*)"&lt;/LI-CODE&gt;&lt;P&gt;This assumes that the site field contains that entire string, i.e. "site: xxx" where xxx is the domain you want to extract.&lt;/P&gt;&lt;P&gt;This creates a new field called domain.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2023 23:21:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-someone-help-with-regex-to-extract-new-field/m-p/638730#M221319</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2023-04-04T23:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: Can someone help with regex to extract new field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-someone-help-with-regex-to-extract-new-field/m-p/639132#M221448</link>
      <description>&lt;P&gt;... | rename site AS domain | table domain&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2023 01:16:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-someone-help-with-regex-to-extract-new-field/m-p/639132#M221448</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2023-04-07T01:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: Can someone help with regex to extract new field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-someone-help-with-regex-to-extract-new-field/m-p/639149#M221455</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/250798"&gt;@pacifiquen&lt;/a&gt;&amp;nbsp;- Use the below command within your search:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=input "site:\s*(?&amp;lt;domain&amp;gt;^\s+)"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps!!!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2023 05:29:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-someone-help-with-regex-to-extract-new-field/m-p/639149#M221455</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2023-04-07T05:29:31Z</dc:date>
    </item>
  </channel>
</rss>

