<?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: Using Regex to split a field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Using-Regex-to-split-a-field/m-p/627606#M218077</link>
    <description>&lt;P&gt;If you could get the Forwarder field contains value: "&lt;SPAN&gt;123.456.78.912,+45.675.3.123,+32.123.456.55"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=forwarder "(?&amp;lt;numbers&amp;gt;\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3})" max_match=3&lt;/LI-CODE&gt;&lt;P&gt;max_match parameter should be maximum number since forwarder might have more than 10 values, depending on your use case.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-01-19 201709.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/23450i205B75EF12B07B5C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-01-19 201709.png" alt="Screenshot 2023-01-19 201709.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 19 Jan 2023 14:49:44 GMT</pubDate>
    <dc:creator>karthikvj</dc:creator>
    <dc:date>2023-01-19T14:49:44Z</dc:date>
    <item>
      <title>Using Regex to split a field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-Regex-to-split-a-field/m-p/539637#M152619</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;I have sample set of events coming from the same logs and here &lt;EM&gt;&lt;STRONG&gt;"x"&lt;/STRONG&gt;&lt;/EM&gt; denotes a digit mostly IP address in this case and my requirement is that to &lt;EM&gt;&lt;STRONG&gt;split&lt;/STRONG&gt; &lt;/EM&gt;the data in the existing field "Forwarder"&amp;nbsp; which is mentioned as&lt;EM&gt;&lt;STRONG&gt; "v"&lt;/STRONG&gt;&lt;/EM&gt;. So already we have a field extraction in place i.e. the name of field is "Forwarder". And the current output is as below from all the &lt;EM&gt;&lt;STRONG&gt;5&lt;/STRONG&gt; &lt;/EM&gt;sample events and for the 5th sample event we don't have the &lt;EM&gt;&lt;STRONG&gt;"vvv"&lt;/STRONG&gt;&lt;/EM&gt; value itself in the logs.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;&lt;EM&gt;Sample Logs:&lt;/EM&gt;&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;2021-02-12 06:23:17 xx.xxx.xxx.xx GET /test/v1/xyz/abc/domainsetting domainName=xx.xxx.xxx.xx 443 - xx.xxx.x.xxx function/xxx.x.x.x - xxx x x xx vv.vvv.vvv.vv&lt;/P&gt;
&lt;P&gt;2021-02-12 06:23:26 xx.xxx.xxx.xx GET /Window-2020-def-yy-ab - 443 - xx.xxx.x.xxx Mozilla/5.0+(compatible;+MSIE+9.0;+Windows+NT+6.1;+Linuxx/5.0;+AppInfo) - xxx x x xxx vv.vv.v.v&lt;/P&gt;
&lt;P&gt;2021-02-12 06:11:55 xx.xxx.xxx.xx POST /test/abc/api/Control/Match - 443 - xx.xxx.x.xxx Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/88.0.4324.150+Safari/537.36 &lt;A href="https://pacificlife.merrillconnect-qa.com/abc/def/dashboard/DeliveryList/DeliveryDetail?deliveryId=xxxxx&amp;amp;deliverySource=Feed" target="_blank" rel="noopener"&gt;https://abc.def-mm.com/abc/def/dashboard/DeliveryList/DeliveryDetail?deliveryId=xxxxx&amp;amp;deliverySource=Feed&lt;/A&gt; xxx x x xxx vvv.vv.vvv.vvv,+vv.vvv.v.vvv,+vv.vvv.vvv.vv&lt;/P&gt;
&lt;P&gt;2021-02-12 01:14:47 xx.xxx.xxx.xx GET /test/Abcdefgh/login+button+with+xyz.jpg - 443 - xx.xxx.x.xxx Mozilla/5.0+(iPhone;+CPU+iPhone+OS+14_4+like+Mac+OS+X)+AppleWebKit/605.1.15+(KHTML,+like+Gecko)+Mobile/xxxxx - xxx x x x vvvv:vvvv:vvvv:vvvv:vvvv:vvvv:vvvv:vvvv,+vvv.vvv.vvv.vvv&lt;/P&gt;
&lt;P&gt;2021-02-12 07:32:20 xx.xxx.xxx.xx GET / - 443 - xx.xxx.x.xx - - x xx x x -&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;EM&gt;&lt;STRONG&gt;Forwarder (field name)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;vv.vvv.vvv.vv&lt;BR /&gt;vv.vv.v.v&lt;BR /&gt;vvv.vv.vvv.vvv,+vv.vvv.v.vvv,+vv.vvv.vvv.vv&lt;BR /&gt;vvvv:vvvv:vvvv:vvvv:vvvv:vvvv:vvvv:vvvv,+vvv.vvv.vvv.vvv&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So I want to split them up in the same field name &lt;STRONG&gt;&lt;EM&gt;"Forwarder"&lt;/EM&gt;&lt;/STRONG&gt; i.e. Consider the 3rd (vvv.vv.vvv.vvv,+vv.vvv.v.vvv,+vv.vvv.vvv.vv) &amp;amp; 4th output (vvvv:vvvv:vvvv:vvvv:vvvv:vvvv:vvvv:vvvv,+vvv.vvv.vvv.vvv) in which the&lt;STRONG&gt;&lt;EM&gt; "Forwarder"&lt;/EM&gt;&lt;/STRONG&gt; field has multiple IP's in the same field for the &lt;EM&gt;&lt;STRONG&gt;3rd&lt;/STRONG&gt;&lt;/EM&gt; and &lt;EM&gt;&lt;STRONG&gt;4th&lt;/STRONG&gt;&lt;/EM&gt; output so we want to extract in separate fields under &lt;EM&gt;&lt;STRONG&gt;"Forwarder"&lt;/STRONG&gt;&lt;/EM&gt; with each IP.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;U&gt;Eg:&lt;/U&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;Forwarder (field name)&lt;BR /&gt;123.456.78.912,+45.675.3.123,+32.123.456.55&lt;/P&gt;
&lt;P&gt;Output should be as below for Forwarder Field name as:&lt;BR /&gt;123.456.78.912&lt;BR /&gt;45.675.3.123&lt;BR /&gt;32.123.456.55&lt;/P&gt;
&lt;P&gt;So kindly help me with the regex for the same.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 15:33:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-Regex-to-split-a-field/m-p/539637#M152619</guid>
      <dc:creator>anandhalagaras1</dc:creator>
      <dc:date>2023-01-19T15:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using Regex to split a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-Regex-to-split-a-field/m-p/539640#M152621</link>
      <description>&lt;P&gt;This may help...&lt;/P&gt;&lt;P&gt;|makeresults | eval forwarder="123.456.78.912,+45.675.3.123,+32.123.456.55" | makemv delim="," forwarder&lt;/P&gt;&lt;P&gt;(or)&lt;/P&gt;&lt;P&gt;|makeresults | eval forwarder="123.456.78.912,+45.675.3.123,+32.123.456.55" | rex field=forwarder max_match=0 "(?&amp;lt;Forwarder&amp;gt;[^\,]+)"&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 07:57:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-Regex-to-split-a-field/m-p/539640#M152621</guid>
      <dc:creator>saravanan90</dc:creator>
      <dc:date>2021-02-12T07:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: Using Regex to split a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-Regex-to-split-a-field/m-p/539698#M152647</link>
      <description>&lt;P&gt;Thank you for your response.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But in your search query you have provided the example IP which I have mentioned but in similar type we have so many IP's and moreover I want to use the command and sort the details as well in the query.&lt;/P&gt;&lt;P&gt;index=abc sourcetype=xyz* | stats count by Forwarder | sort -count&amp;nbsp;&lt;/P&gt;&lt;P&gt;So i want to split the data and their count as well. So we can work on our exact requirement. So kindly help on the query.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 14:30:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-Regex-to-split-a-field/m-p/539698#M152647</guid>
      <dc:creator>anandhalagaras1</dc:creator>
      <dc:date>2021-02-12T14:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: Using Regex to split a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-Regex-to-split-a-field/m-p/539713#M152653</link>
      <description>&lt;P&gt;Please check if the below query helps.&lt;/P&gt;&lt;P&gt;|makeresults count=10 | eval forwarder="123.456.78.912,45.675.3.122,32.123.456.54,12.45.78.912,45.675.3.122,32.123.456.54" |makemv forwarder delim="," | mvexpand forwarder | stats count by forwarder&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 15:08:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-Regex-to-split-a-field/m-p/539713#M152653</guid>
      <dc:creator>saravanan90</dc:creator>
      <dc:date>2021-02-12T15:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using Regex to split a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-Regex-to-split-a-field/m-p/539726#M152659</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/211208"&gt;@saravanan90&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your response.&lt;/P&gt;&lt;P&gt;So instead of mentioning all the IP's in&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;eval&lt;/STRONG&gt; &lt;STRONG&gt;Forwarder&lt;/STRONG&gt; &lt;/EM&gt;part in the query can we mention something like &lt;EM&gt;&lt;STRONG&gt;*&lt;/STRONG&gt; &lt;/EM&gt;since there are multiple number of IP's so we cant able to mention all of them. Also for another set of sourcetype we have the &lt;EM&gt;&lt;STRONG&gt;Forwarder&lt;/STRONG&gt; &lt;/EM&gt;field extracted as well. So can we include the index and sourcetype as well in the same query so that it will be unique as well.&amp;nbsp; Hence Kindly help on it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 16:01:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-Regex-to-split-a-field/m-p/539726#M152659</guid>
      <dc:creator>anandhalagaras1</dc:creator>
      <dc:date>2021-02-12T16:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using Regex to split a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-Regex-to-split-a-field/m-p/539727#M152660</link>
      <description>&lt;P&gt;Yes. We need to add the base search with index, sourcetype &amp;amp; other filters to extract the events and get the forwarder ip value as mentioned.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;U&gt;Eg:&lt;/U&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Forwarder (field name)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;123.456.78.912,+45.675.3.123,+32.123.456.55&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 16:16:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-Regex-to-split-a-field/m-p/539727#M152660</guid>
      <dc:creator>saravanan90</dc:creator>
      <dc:date>2021-02-12T16:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: Using Regex to split a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-Regex-to-split-a-field/m-p/539968#M152739</link>
      <description>&lt;P&gt;Hi Saravanan,&lt;/P&gt;&lt;P&gt;Thank you for your response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But in few cases we have more than 30+ IP's so for each and everything how can we enter the IP in the Forwarder field to search the logs instead can we use something like * i.e. It can be whatever might be the IP but it needs to be arranged properly in the Forwarder field.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;123.456.789&lt;/P&gt;&lt;P&gt;123.456.789,+321.345.456.432,+987.654.321.123,+875.453.23.345,+.......&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I want the output to be as below :&lt;/P&gt;&lt;P&gt;Forwarder&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Count&lt;/P&gt;&lt;P&gt;123.456.789&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;/P&gt;&lt;P&gt;321.345.456.432&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;987.654.321.123&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;875.453.23.345&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;&lt;P&gt;And also the count is restricted to 10 but we want all the values split up as above. So kindly help with the query with split up along with count.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 14:27:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-Regex-to-split-a-field/m-p/539968#M152739</guid>
      <dc:creator>anandhalagaras1</dc:creator>
      <dc:date>2021-02-15T14:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using Regex to split a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-Regex-to-split-a-field/m-p/540197#M152797</link>
      <description>&lt;P&gt;Can anyone help me regarding my requirement with field split up.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 07:51:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-Regex-to-split-a-field/m-p/540197#M152797</guid>
      <dc:creator>anandhalagaras1</dc:creator>
      <dc:date>2021-02-17T07:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using Regex to split a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-Regex-to-split-a-field/m-p/540243#M152819</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/207926"&gt;@anandhalagaras1&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/211208"&gt;@saravanan90&lt;/a&gt;&amp;nbsp;solution should be working but I think there is misunderstanding with the sample eval. You don't need to write your ip addresses, they should come from your search already.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In your question you told us Forwarder field has ip addresses, please try adding below in your search.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makemv Forwarder delim="," 
| mvexpand Forwarder 
| eval Forwarder=replace(Forwarder, "\+", "") 
| stats count by Forwarder&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 17 Feb 2021 13:26:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-Regex-to-split-a-field/m-p/540243#M152819</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2021-02-17T13:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: Using Regex to split a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-Regex-to-split-a-field/m-p/540272#M152832</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/206061"&gt;@scelikok&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;P&gt;So now I have ran the query as you have mentioned:&lt;/P&gt;&lt;P&gt;index=abc sourcetype=def&lt;BR /&gt;| makemv Forwarder delim=","&lt;BR /&gt;| mvexpand Forwarder&lt;BR /&gt;| eval Forwarder=replace(Forwarder, "\+", "")&lt;BR /&gt;| stats count by Forwarder&lt;/P&gt;&lt;P&gt;And after which the first field is blank and I can see huge number of count and for the rest of the field I can see IP's split up with count.&lt;/P&gt;&lt;P&gt;So why the first field is blank with no information has so much of count whereas the rest has the IP and count.&lt;/P&gt;&lt;P&gt;Sample output:&lt;/P&gt;&lt;P&gt;Forwarder&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Count&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4500&lt;/P&gt;&lt;P&gt;123.456.78.432&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 23&lt;/P&gt;&lt;P&gt;345.342.543.123&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;12&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 16:06:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-Regex-to-split-a-field/m-p/540272#M152832</guid>
      <dc:creator>anandhalagaras1</dc:creator>
      <dc:date>2021-02-17T16:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: Using Regex to split a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-Regex-to-split-a-field/m-p/540288#M152839</link>
      <description>&lt;P&gt;You may have Forwarder field with empty value. You can filter them before makemv command;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=abc sourcetype=def
| search Forwarder!=""
| makemv Forwarder delim=","
| mvexpand Forwarder
| eval Forwarder=replace(Forwarder, "\+", "")
| stats count by Forwarder&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 17 Feb 2021 17:48:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-Regex-to-split-a-field/m-p/540288#M152839</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2021-02-17T17:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: Using Regex to split a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-Regex-to-split-a-field/m-p/540510#M152921</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/206061"&gt;@scelikok&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you it worked like a charm.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2021 11:52:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-Regex-to-split-a-field/m-p/540510#M152921</guid>
      <dc:creator>anandhalagaras1</dc:creator>
      <dc:date>2021-02-19T11:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using Regex to split a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-Regex-to-split-a-field/m-p/627606#M218077</link>
      <description>&lt;P&gt;If you could get the Forwarder field contains value: "&lt;SPAN&gt;123.456.78.912,+45.675.3.123,+32.123.456.55"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=forwarder "(?&amp;lt;numbers&amp;gt;\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3})" max_match=3&lt;/LI-CODE&gt;&lt;P&gt;max_match parameter should be maximum number since forwarder might have more than 10 values, depending on your use case.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-01-19 201709.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/23450i205B75EF12B07B5C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-01-19 201709.png" alt="Screenshot 2023-01-19 201709.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 14:49:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-Regex-to-split-a-field/m-p/627606#M218077</guid>
      <dc:creator>karthikvj</dc:creator>
      <dc:date>2023-01-19T14:49:44Z</dc:date>
    </item>
  </channel>
</rss>

