<?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 do I divide multiple values in a field into new separate fields at search-time? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-divide-multiple-values-in-a-field-into-new-separate/m-p/235931#M70083</link>
    <description>&lt;P&gt;Thanks Dart,&lt;/P&gt;

&lt;P&gt;How do I structure the command:&lt;/P&gt;

&lt;P&gt;I want to take each of these values in a field named &lt;STRONG&gt;gkg_TONE&lt;/STRONG&gt; (there are always 6 values comma separated):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;0, 3.25379609544469, 2.38611713665944, 0, 24.7288503253796, 0.867678958785249
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;With these values I would like to create these fields:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;gkg_TONE1="0"
gkg_Pos_Score="3.25379609544469"
gkg_Neg_Score="2.38611713665944"
gkg_Polarity="0"
gkg_Ativity_Ref="24.7288503253796"
gkg_Ref_Dens="0.867678958785249"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have tried this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval n=mvindex (gkg_TONE, gkg_TONE1, gkg_Pos_Score, gkg_Neg_Score, gkg_Polarity, gkg_Ativity_Ref, gkg_Ref_Dens)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but get:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"Error in 'eval' command: The arguments to the 'mvindex' function are invalid."
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please can you help.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Jonathan&lt;/P&gt;</description>
    <pubDate>Mon, 16 Nov 2015 13:20:57 GMT</pubDate>
    <dc:creator>BrandSentiment</dc:creator>
    <dc:date>2015-11-16T13:20:57Z</dc:date>
    <item>
      <title>How do I divide multiple values in a field into new separate fields at search-time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-divide-multiple-values-in-a-field-into-new-separate/m-p/235929#M70081</link>
      <description>&lt;P&gt;I have created a delim operator as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makemv delim=","  TONE 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;which returns the following values in the TONE field:&lt;/P&gt;

&lt;P&gt;0.86767895878525&lt;BR /&gt;
3.25379609544469&lt;BR /&gt;
2.38611713665944&lt;BR /&gt;
5.63991323210412&lt;BR /&gt;
24.7288503253796&lt;BR /&gt;
0.867678958785249&lt;/P&gt;

&lt;P&gt;I would like to to separate each of these values into new fields at the time of search:&lt;/P&gt;

&lt;P&gt;Tone&lt;BR /&gt;
Positive Score&lt;BR /&gt;
Negative Score&lt;BR /&gt;
Polarity&lt;BR /&gt;
Activity Reference Density&lt;BR /&gt;
Reference Density&lt;/P&gt;

&lt;P&gt;Is this possible?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2015 08:45:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-divide-multiple-values-in-a-field-into-new-separate/m-p/235929#M70081</guid>
      <dc:creator>BrandSentiment</dc:creator>
      <dc:date>2015-11-16T08:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: How do I divide multiple values in a field into new separate fields at search-time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-divide-multiple-values-in-a-field-into-new-separate/m-p/235930#M70082</link>
      <description>&lt;P&gt;The mvindex function will let you select individual elements in a multivalued field : &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.3/SearchReference/Commonevalfunctions"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.3/SearchReference/Commonevalfunctions&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2015 10:02:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-divide-multiple-values-in-a-field-into-new-separate/m-p/235930#M70082</guid>
      <dc:creator>dart</dc:creator>
      <dc:date>2015-11-16T10:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: How do I divide multiple values in a field into new separate fields at search-time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-divide-multiple-values-in-a-field-into-new-separate/m-p/235931#M70083</link>
      <description>&lt;P&gt;Thanks Dart,&lt;/P&gt;

&lt;P&gt;How do I structure the command:&lt;/P&gt;

&lt;P&gt;I want to take each of these values in a field named &lt;STRONG&gt;gkg_TONE&lt;/STRONG&gt; (there are always 6 values comma separated):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;0, 3.25379609544469, 2.38611713665944, 0, 24.7288503253796, 0.867678958785249
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;With these values I would like to create these fields:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;gkg_TONE1="0"
gkg_Pos_Score="3.25379609544469"
gkg_Neg_Score="2.38611713665944"
gkg_Polarity="0"
gkg_Ativity_Ref="24.7288503253796"
gkg_Ref_Dens="0.867678958785249"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have tried this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval n=mvindex (gkg_TONE, gkg_TONE1, gkg_Pos_Score, gkg_Neg_Score, gkg_Polarity, gkg_Ativity_Ref, gkg_Ref_Dens)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but get:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"Error in 'eval' command: The arguments to the 'mvindex' function are invalid."
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please can you help.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Jonathan&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2015 13:20:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-divide-multiple-values-in-a-field-into-new-separate/m-p/235931#M70083</guid>
      <dc:creator>BrandSentiment</dc:creator>
      <dc:date>2015-11-16T13:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do I divide multiple values in a field into new separate fields at search-time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-divide-multiple-values-in-a-field-into-new-separate/m-p/235932#M70084</link>
      <description>&lt;P&gt;Assuming the &lt;CODE&gt;makemv&lt;/CODE&gt;  command is returing data in the right format into a field named &lt;CODE&gt;tone&lt;/CODE&gt;, to extract each value use the following command&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;..| eval gkg_Tone1=mvindex(tone, 0) | eval gkg_Pos_Score=mvindex(tone, 1)&lt;/CODE&gt; ad so on for rest of the fields. This assumes the order in which the 6 data point are arranged is always the same.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2015 23:02:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-divide-multiple-values-in-a-field-into-new-separate/m-p/235932#M70084</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2015-11-16T23:02:25Z</dc:date>
    </item>
  </channel>
</rss>

