<?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: How split up a string into multiple fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-up-a-string-into-multiple-fields/m-p/167816#M47799</link>
    <description>&lt;P&gt;Do you have a "region" in your string in the examples 2 &amp;amp; 3?&lt;/P&gt;</description>
    <pubDate>Mon, 04 Aug 2014 07:41:53 GMT</pubDate>
    <dc:creator>HeinzWaescher</dc:creator>
    <dc:date>2014-08-04T07:41:53Z</dc:date>
    <item>
      <title>How to split up a string into multiple fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-up-a-string-into-multiple-fields/m-p/167811#M47794</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;let's say there is a field like this:&lt;/P&gt;
&lt;P&gt;FieldA = product.country.price&lt;/P&gt;
&lt;P&gt;Is it possible to extract this value into 3 different fields?&lt;/P&gt;
&lt;P&gt;FieldB=product&lt;BR /&gt;FieldC=country&lt;BR /&gt;FieldD=price&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;
&lt;P&gt;Heinz&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2021 19:34:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-up-a-string-into-multiple-fields/m-p/167811#M47794</guid>
      <dc:creator>HeinzWaescher</dc:creator>
      <dc:date>2021-01-11T19:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: How split up a string into multiple fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-up-a-string-into-multiple-fields/m-p/167812#M47795</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your query |rex "FieldA\=(?&amp;lt;FieldB&amp;gt;.*)\.(?&amp;lt;FieldC&amp;gt;.*)\.(?&amp;lt;FieldD&amp;gt;.*)"|table FieldA FieldB FieldC FieldD
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Lp&lt;/P&gt;</description>
      <pubDate>Fri, 16 May 2014 13:30:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-up-a-string-into-multiple-fields/m-p/167812#M47795</guid>
      <dc:creator>lpolo</dc:creator>
      <dc:date>2014-05-16T13:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: How split up a string into multiple fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-up-a-string-into-multiple-fields/m-p/167813#M47796</link>
      <description>&lt;P&gt;Following could be the option your can use:(assuming delimiter is dot "." between field values)&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;REX command&lt;/STRONG&gt; &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; your base search | rex field=FieldA "(?&amp;lt;FieldB&amp;gt;.*)\.(?&amp;lt;FieldC&amp;gt;.*)\.(?&amp;lt;FieldD&amp;gt;.*)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Split command&lt;/STRONG&gt; &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search | eval temp=split(FieldA,".") | eval FieldB=mvindex(temp,0)| eval FieldC=mvindex(temp,1)| eval FieldD=mvindex(temp,2) | fields - temp
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 May 2014 13:33:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-up-a-string-into-multiple-fields/m-p/167813#M47796</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-05-16T13:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: How split up a string into multiple fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-up-a-string-into-multiple-fields/m-p/167814#M47797</link>
      <description>&lt;P&gt;Here's one way to do it at search time:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex field=FieldA "(?&amp;lt;FieldB&amp;gt;[^\.]*)\.(?&amp;lt;FieldC&amp;gt;[^\.]*)\.(?&amp;lt;FieldD&amp;gt;[\S]*)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 May 2014 13:34:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-up-a-string-into-multiple-fields/m-p/167814#M47797</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2014-05-16T13:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: How split up a string into multiple fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-up-a-string-into-multiple-fields/m-p/167815#M47798</link>
      <description>&lt;P&gt;We have similar scenario but 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:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-up-a-string-into-multiple-fields/m-p/167815#M47798</guid>
      <dc:creator>pavan_bhumanapa</dc:creator>
      <dc:date>2020-09-28T17:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: How split up a string into multiple fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-up-a-string-into-multiple-fields/m-p/167816#M47799</link>
      <description>&lt;P&gt;Do you have a "region" in your string in the examples 2 &amp;amp; 3?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2014 07:41:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-up-a-string-into-multiple-fields/m-p/167816#M47799</guid>
      <dc:creator>HeinzWaescher</dc:creator>
      <dc:date>2014-08-04T07:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: How split up a string into multiple fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-up-a-string-into-multiple-fields/m-p/167817#M47800</link>
      <description>&lt;P&gt;In line to the same above scenario, what if the values in the fields are not even? like FieldA has the following values,&lt;BR /&gt;
product.country&lt;BR /&gt;
product&lt;BR /&gt;
product.country.price&lt;BR /&gt;
product.price&lt;BR /&gt;
product.country.price&lt;BR /&gt;
in the above scenario, i tried split, but it is not working (but  works). how to quantify for missing values/null values? i couldn't quantify for null values in the fields.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 12:41:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-up-a-string-into-multiple-fields/m-p/167817#M47800</guid>
      <dc:creator>sundarrajan</dc:creator>
      <dc:date>2017-03-31T12:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: How split up a string into multiple fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-up-a-string-into-multiple-fields/m-p/167818#M47801</link>
      <description>&lt;P&gt;Did you get an answer to this?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 16:07:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-up-a-string-into-multiple-fields/m-p/167818#M47801</guid>
      <dc:creator>robertlynch2020</dc:creator>
      <dc:date>2017-11-08T16:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: How split up a string into multiple fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-up-a-string-into-multiple-fields/m-p/167819#M47802</link>
      <description>&lt;P&gt;I know, 5 years later but I need this to separate multiple fields delim by : &lt;BR /&gt;
This working swimmingly for what I needed &lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 21:08:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-up-a-string-into-multiple-fields/m-p/167819#M47802</guid>
      <dc:creator>aebrittingham</dc:creator>
      <dc:date>2019-05-09T21:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: How split up a string into multiple fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-up-a-string-into-multiple-fields/m-p/620438#M215687</link>
      <description>&lt;P&gt;Hello its so usefull. Thanks for the query . I have a question for this subject. I have a FieldA and this fileds like a FieldA="a\b\c\n\....\z" . its a long field. I want it to automatically split the field and give each value a name. so I actually want to see a manual version of field transforms. If you have an idea and would like to help, I would be glad.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 14:28:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-up-a-string-into-multiple-fields/m-p/620438#M215687</guid>
      <dc:creator>Thats_my_usrnme</dc:creator>
      <dc:date>2022-11-10T14:28:14Z</dc:date>
    </item>
  </channel>
</rss>

