<?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 to separate a string which contains multiple value but doesn't have delimiter to separate in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-separate-a-string-which-contains-multiple-value-but-doesn/m-p/686473#M19316</link>
    <description>&lt;P&gt;If there is really no delimiter, you can't, but in your case, there is a delimiter, which I am assuming in your example is the line feed at the end of each row. You can either do this by putting a line feed as the split delimiter&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval field1="example1@splunk.com
example@splunk.com
sample@splunk.com
scheduler"
| eval x=split(field1, "
")
| eval field1_items=mvcount(field1), fieldx_items=mvcount(x)&lt;/LI-CODE&gt;&lt;P&gt;or you can use replace+split to change the line feed into something easier to split with, e.g.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval x=split(replace(field1, "\n", "#!#"), "#!#")&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 06 May 2024 03:13:59 GMT</pubDate>
    <dc:creator>bowesmana</dc:creator>
    <dc:date>2024-05-06T03:13:59Z</dc:date>
    <item>
      <title>How to separate a string which contains multiple value but doesn't have delimiter to separate</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-separate-a-string-which-contains-multiple-value-but-doesn/m-p/686471#M19315</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I want to separate a field which contains multiple value within it but doesn't have delimiter on it.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;| makeresults&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;| eval field1="example1@splunk.com&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="mailto:example@splunk.com" target="_blank" rel="noopener"&gt;example@splunk.com&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="mailto:example2@splunk.com" target="_blank" rel="noopener"&gt;sample@splunk.com&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;scheduler"&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;I have tried to use &lt;FONT color="#FF0000"&gt;| eval split = split(field1, " ")&lt;/FONT&gt;. But nothing works, Kindly help me out on this like how to separate this single string field as MV field.&lt;/P&gt;&lt;P&gt;Thanks in Advance&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2024 03:06:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-separate-a-string-which-contains-multiple-value-but-doesn/m-p/686471#M19315</guid>
      <dc:creator>Kamal06</dc:creator>
      <dc:date>2024-05-06T03:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to separate a string which contains multiple value but doesn't have delimiter to separate</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-separate-a-string-which-contains-multiple-value-but-doesn/m-p/686473#M19316</link>
      <description>&lt;P&gt;If there is really no delimiter, you can't, but in your case, there is a delimiter, which I am assuming in your example is the line feed at the end of each row. You can either do this by putting a line feed as the split delimiter&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval field1="example1@splunk.com
example@splunk.com
sample@splunk.com
scheduler"
| eval x=split(field1, "
")
| eval field1_items=mvcount(field1), fieldx_items=mvcount(x)&lt;/LI-CODE&gt;&lt;P&gt;or you can use replace+split to change the line feed into something easier to split with, e.g.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval x=split(replace(field1, "\n", "#!#"), "#!#")&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 06 May 2024 03:13:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-separate-a-string-which-contains-multiple-value-but-doesn/m-p/686473#M19316</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2024-05-06T03:13:59Z</dc:date>
    </item>
  </channel>
</rss>

