<?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: Extract a part of field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Extract-a-part-of-field/m-p/678099#M231895</link>
    <description>&lt;P&gt;It works &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Many thanks for your help !&lt;/P&gt;</description>
    <pubDate>Tue, 20 Feb 2024 15:29:00 GMT</pubDate>
    <dc:creator>Olivier2024</dc:creator>
    <dc:date>2024-02-20T15:29:00Z</dc:date>
    <item>
      <title>Extract a part of field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-a-part-of-field/m-p/678048#M231883</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm trying to extract a part of a field. The field named Computer and is like MySrv.MyDomain.MySubDom1.com&lt;/P&gt;&lt;P&gt;MySubDom1 can exist or not.&lt;/P&gt;&lt;P&gt;I would like to extract everything after MySrv. I tried with&amp;nbsp;&amp;nbsp;index=MyIndex host=MySrv | rex field=_raw "(?&amp;lt;domaine_test&amp;gt;(\.\w+))"&lt;/P&gt;&lt;P&gt;The result create a new field Domain_test but it stores only the first part "MyDomain" and not the rest of the field.&lt;/P&gt;&lt;P&gt;How can I do this ?&lt;/P&gt;&lt;P&gt;For exemple :&lt;/P&gt;&lt;P&gt;Computer = "MySrv.MyDomain.MySubDom1.com"&lt;BR /&gt;Result : Domain_test = "MyDomain.MySubDom1.com"&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 10:00:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-a-part-of-field/m-p/678048#M231883</guid>
      <dc:creator>Olivier2024</dc:creator>
      <dc:date>2024-02-20T10:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: Extract a part of field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-a-part-of-field/m-p/678056#M231886</link>
      <description>&lt;LI-CODE lang="markup"&gt;| rex "\w+\.(?&amp;lt;domaine_test&amp;gt;[\.\w]+)"&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 20 Feb 2024 10:52:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-a-part-of-field/m-p/678056#M231886</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-02-20T10:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: Extract a part of field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-a-part-of-field/m-p/678084#M231890</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you for your response.&lt;/P&gt;&lt;P&gt;I have some domain with "-" character, for exemple black-ice.com&lt;BR /&gt;The result is "black". Is it possible to get all domain ?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 14:18:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-a-part-of-field/m-p/678084#M231890</guid>
      <dc:creator>Olivier2024</dc:creator>
      <dc:date>2024-02-20T14:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: Extract a part of field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-a-part-of-field/m-p/678091#M231892</link>
      <description>&lt;LI-CODE lang="markup"&gt;| rex "\w+\.(?&amp;lt;domaine_test&amp;gt;[\.\w-]+)"&lt;/LI-CODE&gt;&lt;P&gt;if the - is at the end of the character class [] it doesn't need to be escaped&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 14:49:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-a-part-of-field/m-p/678091#M231892</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-02-20T14:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: Extract a part of field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-a-part-of-field/m-p/678099#M231895</link>
      <description>&lt;P&gt;It works &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Many thanks for your help !&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 15:29:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-a-part-of-field/m-p/678099#M231895</guid>
      <dc:creator>Olivier2024</dc:creator>
      <dc:date>2024-02-20T15:29:00Z</dc:date>
    </item>
  </channel>
</rss>

