<?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 I want to split a field into two different fields for comparison split at whitespace in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/I-want-to-split-a-field-into-two-different-fields-for-comparison/m-p/336488#M99844</link>
    <description>&lt;P&gt;I want to split a field into two different fields for comparission,&lt;BR /&gt;
my data is in the format:&lt;BR /&gt;
address= 5555 xxxxx yyy Apt Z&lt;BR /&gt;
desired result :&lt;BR /&gt;
house number= 5555&lt;BR /&gt;
street address = xxxx yyy&lt;/P&gt;

&lt;P&gt;I have tried to use the split command but does not help me with what I want&lt;/P&gt;</description>
    <pubDate>Fri, 27 Oct 2017 13:37:27 GMT</pubDate>
    <dc:creator>jaleelahmed94</dc:creator>
    <dc:date>2017-10-27T13:37:27Z</dc:date>
    <item>
      <title>I want to split a field into two different fields for comparison split at whitespace</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-want-to-split-a-field-into-two-different-fields-for-comparison/m-p/336488#M99844</link>
      <description>&lt;P&gt;I want to split a field into two different fields for comparission,&lt;BR /&gt;
my data is in the format:&lt;BR /&gt;
address= 5555 xxxxx yyy Apt Z&lt;BR /&gt;
desired result :&lt;BR /&gt;
house number= 5555&lt;BR /&gt;
street address = xxxx yyy&lt;/P&gt;

&lt;P&gt;I have tried to use the split command but does not help me with what I want&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2017 13:37:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-want-to-split-a-field-into-two-different-fields-for-comparison/m-p/336488#M99844</guid>
      <dc:creator>jaleelahmed94</dc:creator>
      <dc:date>2017-10-27T13:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: I want to split a field into two different fields for comparison split at whitespace</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-want-to-split-a-field-into-two-different-fields-for-comparison/m-p/336489#M99845</link>
      <description>&lt;P&gt;Try &lt;CODE&gt;rex&lt;/CODE&gt;.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex field=address "(?&amp;lt;houseNumber&amp;gt;\d+)\s(?&amp;lt;streetAddress&amp;gt;.*)" | ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 27 Oct 2017 14:20:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-want-to-split-a-field-into-two-different-fields-for-comparison/m-p/336489#M99845</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2017-10-27T14:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: I want to split a field into two different fields for comparison split at whitespace</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-want-to-split-a-field-into-two-different-fields-for-comparison/m-p/336490#M99846</link>
      <description>&lt;P&gt;@jaleelahmed94, please try the following rex command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;YourBaseSearch&amp;gt;
| table address
| rex field=address "address=\s(?&amp;lt;house_number&amp;gt;\d+)\s(?&amp;lt;street_address&amp;gt;.*)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can test the Regular Expression inside double quotes on regex101.com with your sample data.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2017 14:23:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-want-to-split-a-field-into-two-different-fields-for-comparison/m-p/336490#M99846</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-10-27T14:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: I want to split a field into two different fields for comparison split at whitespace</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-want-to-split-a-field-into-two-different-fields-for-comparison/m-p/336491#M99847</link>
      <description>&lt;P&gt;Thanks, I was looking for something like this!&lt;/P&gt;

&lt;P&gt;I instead used rex field=address "(?\s+)\s(?.*)" &lt;BR /&gt;
because the address field was string.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2017 15:30:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-want-to-split-a-field-into-two-different-fields-for-comparison/m-p/336491#M99847</guid>
      <dc:creator>jaleelahmed94</dc:creator>
      <dc:date>2017-10-31T15:30:54Z</dc:date>
    </item>
  </channel>
</rss>

