<?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: Splitting field into 2 fields? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splitting-field-into-2-fields/m-p/190507#M54862</link>
    <description>&lt;P&gt;Do you realize that &lt;CODE&gt;coalesce&lt;/CODE&gt; does not really "combine" your IPs?  In any case, This should do it:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex field=combined_ip "^(?&amp;lt;combined_ipv4&amp;gt;\d+\.\d+\.\d+\.\d+)|(?&amp;lt;combined_ipv6&amp;gt;.*)$"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 03 Jul 2015 03:09:37 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2015-07-03T03:09:37Z</dc:date>
    <item>
      <title>Splitting field into 2 fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splitting-field-into-2-fields/m-p/190506#M54861</link>
      <description>&lt;P&gt;I have a list of IP addresses that I get from a &lt;CODE&gt;eval combined_ip = coalesce(src_ip, dst_ip)&lt;/CODE&gt; command. This list combined_ips contains both IPv4 and IPv6 addresses and I would like to separate them into two new fields ipv4 and ipv6?&lt;/P&gt;

&lt;P&gt;How do would I create these two new fields?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2015 02:15:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splitting-field-into-2-fields/m-p/190506#M54861</guid>
      <dc:creator>splunknewby</dc:creator>
      <dc:date>2015-07-03T02:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting field into 2 fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splitting-field-into-2-fields/m-p/190507#M54862</link>
      <description>&lt;P&gt;Do you realize that &lt;CODE&gt;coalesce&lt;/CODE&gt; does not really "combine" your IPs?  In any case, This should do it:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex field=combined_ip "^(?&amp;lt;combined_ipv4&amp;gt;\d+\.\d+\.\d+\.\d+)|(?&amp;lt;combined_ipv6&amp;gt;.*)$"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 03 Jul 2015 03:09:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splitting-field-into-2-fields/m-p/190507#M54862</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-07-03T03:09:37Z</dc:date>
    </item>
  </channel>
</rss>

