<?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 How to split a string into multiple fields for different domains in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-a-string-into-multiple-fields-for-different-domains/m-p/168202#M47945</link>
    <description>&lt;P&gt;We have a scenario where we have many domains and we want to split it accordingly . Any advice would be great help .&lt;/P&gt;

&lt;P&gt;test_corp1_osb_tid&lt;BR /&gt;
               -&amp;gt; product: osb&lt;BR /&gt;
               -&amp;gt; environment: tid&lt;BR /&gt;
               -&amp;gt; region: test&lt;BR /&gt;
               -&amp;gt; segment: corp&lt;/P&gt;

&lt;P&gt;proc_osb_tid&lt;BR /&gt;
               -&amp;gt; product: osb&lt;BR /&gt;
               -&amp;gt; environment: tid&lt;BR /&gt;
               -&amp;gt; region: us&lt;BR /&gt;
               -&amp;gt; segment: proc&lt;/P&gt;

&lt;P&gt;cvs_bpel_tid&lt;BR /&gt;
               -&amp;gt; product: bpel&lt;BR /&gt;
               -&amp;gt; environment: tid&lt;BR /&gt;
               -&amp;gt; region: us&lt;BR /&gt;
               -&amp;gt; segment: cvs&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 17:14:59 GMT</pubDate>
    <dc:creator>pavan_bhumanapa</dc:creator>
    <dc:date>2020-09-28T17:14:59Z</dc:date>
    <item>
      <title>How to split a string into multiple fields for different domains</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-a-string-into-multiple-fields-for-different-domains/m-p/168202#M47945</link>
      <description>&lt;P&gt;We have a scenario where we have many domains and we want to split it accordingly . Any advice would be great help .&lt;/P&gt;

&lt;P&gt;test_corp1_osb_tid&lt;BR /&gt;
               -&amp;gt; product: osb&lt;BR /&gt;
               -&amp;gt; environment: tid&lt;BR /&gt;
               -&amp;gt; region: test&lt;BR /&gt;
               -&amp;gt; segment: corp&lt;/P&gt;

&lt;P&gt;proc_osb_tid&lt;BR /&gt;
               -&amp;gt; product: osb&lt;BR /&gt;
               -&amp;gt; environment: tid&lt;BR /&gt;
               -&amp;gt; region: us&lt;BR /&gt;
               -&amp;gt; segment: proc&lt;/P&gt;

&lt;P&gt;cvs_bpel_tid&lt;BR /&gt;
               -&amp;gt; product: bpel&lt;BR /&gt;
               -&amp;gt; environment: tid&lt;BR /&gt;
               -&amp;gt; region: us&lt;BR /&gt;
               -&amp;gt; segment: cvs&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:14:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-a-string-into-multiple-fields-for-different-domains/m-p/168202#M47945</guid>
      <dc:creator>pavan_bhumanapa</dc:creator>
      <dc:date>2020-09-28T17:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to split a string into multiple fields for different domains</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-a-string-into-multiple-fields-for-different-domains/m-p/168203#M47946</link>
      <description>&lt;P&gt;Are you looking for a &lt;CODE&gt;rex&lt;/CODE&gt; call? Your question isn't really clear on that.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex field=domain "^(?:(?&amp;lt;region&amp;gt;[^_]+)_)?(?&amp;lt;segment&amp;gt;[^_]+)_(?&amp;lt;product&amp;gt;[^_]+)_(?&amp;lt;environment&amp;gt;[^_]+)$" | eval region = coalesce(region, "us") | ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 02 Aug 2014 00:23:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-a-string-into-multiple-fields-for-different-domains/m-p/168203#M47946</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-08-02T00:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to split a string into multiple fields for different domains</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-a-string-into-multiple-fields-for-different-domains/m-p/168204#M47947</link>
      <description>&lt;P&gt;Do we have any other solution apart from regex? like lookups. I need to pull the values from log and split the string.&lt;/P&gt;

&lt;P&gt;EX: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;Jul 25, 2014 9:51:25 AM MYT&amp;gt; &amp;lt;Error&amp;gt; &amp;lt;WliSbCustomResources&amp;gt; &amp;lt;aussoaditapp12.us.dell.com&amp;gt; &amp;lt;apj_corp1_osb_dit_ms2&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 04 Aug 2014 14:54:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-a-string-into-multiple-fields-for-different-domains/m-p/168204#M47947</guid>
      <dc:creator>pavan_bhumanapa</dc:creator>
      <dc:date>2014-08-04T14:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to split a string into multiple fields for different domains</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-a-string-into-multiple-fields-for-different-domains/m-p/168205#M47948</link>
      <description>&lt;P&gt;Regex are the way to go for extracting parts of a string.&lt;/P&gt;

&lt;P&gt;Lookups add fields to an event based on some matching fields, similar to an SQL join.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2014 21:08:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-a-string-into-multiple-fields-for-different-domains/m-p/168205#M47948</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-08-04T21:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to split a string into multiple fields for different domains</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-a-string-into-multiple-fields-for-different-domains/m-p/168206#M47949</link>
      <description>&lt;P&gt;I am able to extract these fields using lookup. &lt;/P&gt;</description>
      <pubDate>Tue, 26 Aug 2014 21:14:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-a-string-into-multiple-fields-for-different-domains/m-p/168206#M47949</guid>
      <dc:creator>pavan_bhumanapa</dc:creator>
      <dc:date>2014-08-26T21:14:19Z</dc:date>
    </item>
  </channel>
</rss>

