<?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 create an array of values from a field? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-an-array-of-values-from-a-field/m-p/107674#M28002</link>
    <description>&lt;P&gt;Thanks! &lt;CODE&gt;mvindex&lt;/CODE&gt; is the function I was looking for.&lt;/P&gt;</description>
    <pubDate>Tue, 03 Jun 2014 18:38:18 GMT</pubDate>
    <dc:creator>l0pher</dc:creator>
    <dc:date>2014-06-03T18:38:18Z</dc:date>
    <item>
      <title>How to create an array of values from a field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-an-array-of-values-from-a-field/m-p/107672#M28000</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I am trying to parse a field like the one below into an array of Key/Value pairs and access each array value separately&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;uatoken:&lt;/STRONG&gt;&lt;BR /&gt;
Macintosh; Intel Mac OS X 10_7_5&lt;BR /&gt;
Windows NT 6.2; WOW64; rv:22.0&lt;BR /&gt;
compatible; MSIE 10.0; Windows NT 6.2; Trident/6.0; ARM; Touch; WPDesktop&lt;BR /&gt;
compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0&lt;BR /&gt;
compatible; MSIE 10.0; Windows NT 6.1; Trident/6.0&lt;BR /&gt;
Android; Mobile; rv:22.0&lt;BR /&gt;
Macintosh; Intel Mac OS X 10_7_5&lt;BR /&gt;
compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0&lt;BR /&gt;
compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0&lt;BR /&gt;
Linux; U; Android 4.0.3; en-us; HTC_X515C Build/IML74K&lt;BR /&gt;
compatible; MSIE 10.0; Windows NT 6.1; Trident/6.0&lt;BR /&gt;
compatible; MSIE 10.0; Windows NT 6.1; Trident/6.0&lt;BR /&gt;
Windows NT 6.1; chromeframe/28.0.1500.72&lt;BR /&gt;
Macintosh; Intel Mac OS X 10_8_4&lt;BR /&gt;
compatible; MSIE 10.0; Windows NT 6.1; Trident/6.0&lt;/P&gt;

&lt;P&gt;The end result that I am looking for is &lt;BR /&gt;
uatoken[0] OR uatoken0=compatible&lt;BR /&gt;
uatoken[1] OR uatoken1=MSIE 10.0&lt;BR /&gt;
uatoken[2] OR uatoken2=Windows NT 6.1&lt;BR /&gt;
uatoken[3] OR uatoken3=Trident/6.0&lt;/P&gt;

&lt;P&gt;How can I achieve this in Splunk?&lt;/P&gt;

&lt;P&gt;Thanks in advance!!!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:26:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-an-array-of-values-from-a-field/m-p/107672#M28000</guid>
      <dc:creator>naveenurs</dc:creator>
      <dc:date>2020-09-28T14:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to create an array of values from a field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-an-array-of-values-from-a-field/m-p/107673#M28001</link>
      <description>&lt;P&gt;I was able to accomplish what I was looking for.&lt;/P&gt;

&lt;P&gt;eventtype=video|eval uatokentmp=split(uatoken,";")|eval uatoken0=mvindex(uatokentmp,0)|eval uatoken1=mvindex(uatokentmp,1)|eval uatoken2=mvindex(uatokentmp,2)|eval uatoken3=mvindex(uatokentmp,3)|eval uatoken4=mvindex(uatokentmp,4)| eval uatoken5=mvindex(uatokentmp,5)|table uatoken0 uatoken1 uatoken2 uatoken3 uatoken4 uatoken5&lt;/P&gt;

&lt;P&gt;Is there a better / more efficient way than this to accomplish this?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2013 16:48:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-an-array-of-values-from-a-field/m-p/107673#M28001</guid>
      <dc:creator>naveenurs</dc:creator>
      <dc:date>2013-07-26T16:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to create an array of values from a field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-an-array-of-values-from-a-field/m-p/107674#M28002</link>
      <description>&lt;P&gt;Thanks! &lt;CODE&gt;mvindex&lt;/CODE&gt; is the function I was looking for.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jun 2014 18:38:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-an-array-of-values-from-a-field/m-p/107674#M28002</guid>
      <dc:creator>l0pher</dc:creator>
      <dc:date>2014-06-03T18:38:18Z</dc:date>
    </item>
  </channel>
</rss>

