<?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: Extracting a field from delimeter value in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Extracting-a-field-from-delimeter-value/m-p/563764#M196390</link>
    <description>&lt;P&gt;This regex should get all 5 fields.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(?&amp;lt;field1&amp;gt;[^\.]+)\.(?&amp;lt;field2&amp;gt;[^\.]+)\.(?&amp;lt;field3&amp;gt;[^@]+)@(?&amp;lt;field4&amp;gt;[^\.]+)\.(?&amp;lt;field5&amp;gt;.*)&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 18 Aug 2021 12:22:30 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2021-08-18T12:22:30Z</dc:date>
    <item>
      <title>Extracting a field from delimeter value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-a-field-from-delimeter-value/m-p/563666#M196367</link>
      <description>&lt;P&gt;My fields have values like,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;UTR998760071.unot.utrl.accorda.net&lt;BR /&gt;RANWA80A8881.cnet.utrl.matrixia.net&lt;BR /&gt;ANNA00A0071.tron.utrl.zimbaw.net&lt;BR /&gt;BP87DF087071.cnet.trzn.netisha.net&lt;BR /&gt;&lt;BR /&gt;I want the fist part of the string to be extracted. The part before the first .(dot)&lt;BR /&gt;&lt;BR /&gt;output be like&amp;nbsp;&lt;BR /&gt;UTR998760071&lt;BR /&gt;RANWA80A8881&lt;BR /&gt;ANNA00A0071&lt;BR /&gt;BP87DF087071&lt;BR /&gt;&lt;BR /&gt;Not with substr but with a regex preferably.&lt;BR /&gt;Thank you&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Aug 2021 15:06:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-a-field-from-delimeter-value/m-p/563666#M196367</guid>
      <dc:creator>zacksoft_wf</dc:creator>
      <dc:date>2021-08-17T15:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting a field from delimeter value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-a-field-from-delimeter-value/m-p/563671#M196368</link>
      <description>&lt;P&gt;There are a couple of ways to do that.&lt;/P&gt;&lt;P&gt;The first uses &lt;FONT face="courier new,courier"&gt;rex&lt;/FONT&gt;:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;... | rex field=foo "(?&amp;lt;newField&amp;gt;[^\.]+)"&lt;/LI-CODE&gt;&lt;P&gt;The other uses the &lt;FONT face="courier new,courier"&gt;split&lt;/FONT&gt; function.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;... | eval newField=mvindex(split(field, "."), 0)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 17 Aug 2021 15:11:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-a-field-from-delimeter-value/m-p/563671#M196368</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-08-17T15:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting a field from delimeter value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-a-field-from-delimeter-value/m-p/563677#M196369</link>
      <description>&lt;P&gt;Some of my fields demand extraction of other fields&amp;nbsp; between the delimeter.&lt;BR /&gt;Any rex that could help me to get all the values between the delimeters&amp;nbsp; please ?&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A href="mailto:UTR998760071.unot.utrl@accorda.net" target="_blank"&gt;UTR998760071.unot.utrl@accorda.net&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;(some delimeters are .(dot) and some are (@)&lt;BR /&gt;&lt;BR /&gt;Output should be&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;UTR998760071&lt;BR /&gt;unot&lt;BR /&gt;utrl&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;accorda&lt;BR /&gt;net&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Aug 2021 15:36:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-a-field-from-delimeter-value/m-p/563677#M196369</guid>
      <dc:creator>zacksoft_wf</dc:creator>
      <dc:date>2021-08-17T15:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting a field from delimeter value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-a-field-from-delimeter-value/m-p/563690#M196372</link>
      <description>&lt;P&gt;That's a big change from the original question.&amp;nbsp; Are the fields always in the same format (5 parts) or does it vary?&amp;nbsp; Please provide all requirements so we can answer the question correctly.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Aug 2021 16:57:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-a-field-from-delimeter-value/m-p/563690#M196372</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-08-17T16:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting a field from delimeter value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-a-field-from-delimeter-value/m-p/563739#M196387</link>
      <description>&lt;P&gt;Yes, they are all same format. (5 parts)&lt;BR /&gt;And I have to extract all 5 parts delimeted by .(dot) and&amp;nbsp;@&lt;BR /&gt;&lt;BR /&gt;Example : UTR998760071.unot.utrl@accorda.net&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 06:08:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-a-field-from-delimeter-value/m-p/563739#M196387</guid>
      <dc:creator>zacksoft_wf</dc:creator>
      <dc:date>2021-08-18T06:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting a field from delimeter value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-a-field-from-delimeter-value/m-p/563764#M196390</link>
      <description>&lt;P&gt;This regex should get all 5 fields.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(?&amp;lt;field1&amp;gt;[^\.]+)\.(?&amp;lt;field2&amp;gt;[^\.]+)\.(?&amp;lt;field3&amp;gt;[^@]+)@(?&amp;lt;field4&amp;gt;[^\.]+)\.(?&amp;lt;field5&amp;gt;.*)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 18 Aug 2021 12:22:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-a-field-from-delimeter-value/m-p/563764#M196390</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-08-18T12:22:30Z</dc:date>
    </item>
  </channel>
</rss>

