<?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 How can I (or is it even possible to) make arrays out of a and b? in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-or-is-it-even-possible-to-make-arrays-out-of-a-and-b/m-p/642211#M16234</link>
    <description>&lt;P&gt;Suppose I have data as follows:&lt;/P&gt;
&lt;P&gt;| makeresults&lt;BR /&gt;| eval a = mvappend(a, "\"1\"")&lt;BR /&gt;| eval a = mvappend(a, "\"2\"")&lt;BR /&gt;| eval a = mvappend(a, "\"3\"")&lt;BR /&gt;| eval a = mvappend(a, "\"4\"")&lt;BR /&gt;| eval a = mvappend(a, "\"5\"")&lt;BR /&gt;| eval b= mvjoin(a, ",")&lt;BR /&gt;| table a, b&lt;/P&gt;
&lt;P&gt;Using SPL, how can I (or is it even possible to) make arrays out of a and b so that I have fields c=[&lt;SPAN&gt;"1","2","3","4","5"]&amp;nbsp; and d=["1","2","3","4","5"] where c is an array of 5 quoted numerical values and d is an array of 1 single string of the comma separated string: "1","2","3","4","5"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I know I can get arrays of values via extraction from JSON but is there a way to do this without JSON?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 04 May 2023 13:50:54 GMT</pubDate>
    <dc:creator>rberman</dc:creator>
    <dc:date>2023-05-04T13:50:54Z</dc:date>
    <item>
      <title>How can I (or is it even possible to) make arrays out of a and b?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-or-is-it-even-possible-to-make-arrays-out-of-a-and-b/m-p/642211#M16234</link>
      <description>&lt;P&gt;Suppose I have data as follows:&lt;/P&gt;
&lt;P&gt;| makeresults&lt;BR /&gt;| eval a = mvappend(a, "\"1\"")&lt;BR /&gt;| eval a = mvappend(a, "\"2\"")&lt;BR /&gt;| eval a = mvappend(a, "\"3\"")&lt;BR /&gt;| eval a = mvappend(a, "\"4\"")&lt;BR /&gt;| eval a = mvappend(a, "\"5\"")&lt;BR /&gt;| eval b= mvjoin(a, ",")&lt;BR /&gt;| table a, b&lt;/P&gt;
&lt;P&gt;Using SPL, how can I (or is it even possible to) make arrays out of a and b so that I have fields c=[&lt;SPAN&gt;"1","2","3","4","5"]&amp;nbsp; and d=["1","2","3","4","5"] where c is an array of 5 quoted numerical values and d is an array of 1 single string of the comma separated string: "1","2","3","4","5"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I know I can get arrays of values via extraction from JSON but is there a way to do this without JSON?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 13:50:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-or-is-it-even-possible-to-make-arrays-out-of-a-and-b/m-p/642211#M16234</guid>
      <dc:creator>rberman</dc:creator>
      <dc:date>2023-05-04T13:50:54Z</dc:date>
    </item>
  </channel>
</rss>

