<?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 split multivalue fields after lookup? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-multivalue-fields-after-lookup/m-p/349565#M103476</link>
    <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=myindex|lookup mycsv.csv host_ip
| mvexpand branch | eval criticity=mvdedup(criticity)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 02 Nov 2017 18:25:14 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2017-11-02T18:25:14Z</dc:date>
    <item>
      <title>How to split multivalue fields after lookup?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-multivalue-fields-after-lookup/m-p/349562#M103473</link>
      <description>&lt;P&gt;Hello after a search like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=myindex|lookup mycsv.csv host_ip
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have the following output:&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/3798i847344F497DB6715/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;I would like to make it looks like this&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/3799iAA49E65A0D23C207/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;assuming that the criticity is unique per host_ip regardless the number of time it appears.&lt;/P&gt;

&lt;P&gt;Any help is welcome thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 15:22:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-multivalue-fields-after-lookup/m-p/349562#M103473</guid>
      <dc:creator>skiourus</dc:creator>
      <dc:date>2017-11-02T15:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to split multivalue fields after lookup?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-multivalue-fields-after-lookup/m-p/349563#M103474</link>
      <description>&lt;P&gt;I think &lt;CODE&gt;mvexpand&lt;/CODE&gt; should do what you need. Here's some documentation on it:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/SplunkCloud/6.6.3/SearchReference/Mvexpand"&gt;http://docs.splunk.com/Documentation/SplunkCloud/6.6.3/SearchReference/Mvexpand&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Try adding this to the end of your query:&lt;BR /&gt;
&lt;CODE&gt;| mvexpand branch&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 16:58:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-multivalue-fields-after-lookup/m-p/349563#M103474</guid>
      <dc:creator>elliotproebstel</dc:creator>
      <dc:date>2017-11-02T16:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to split multivalue fields after lookup?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-multivalue-fields-after-lookup/m-p/349564#M103475</link>
      <description>&lt;P&gt;Hi &lt;BR /&gt;
Can you please try below search??&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;YOUR_SEARCH
| eval tempField=mvzip(mvzip(host_ip,branch),criticity)
| stats count by _time, tempField 
| eval host_ip=mvindex(split(tempField,","),0), 
    branch=mvindex(split(tempField,","),1),
    criticity=mvindex(split(tempField,","),2)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 17:26:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-multivalue-fields-after-lookup/m-p/349564#M103475</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2017-11-02T17:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to split multivalue fields after lookup?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-multivalue-fields-after-lookup/m-p/349565#M103476</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=myindex|lookup mycsv.csv host_ip
| mvexpand branch | eval criticity=mvdedup(criticity)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 02 Nov 2017 18:25:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-multivalue-fields-after-lookup/m-p/349565#M103476</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-11-02T18:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to split multivalue fields after lookup?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-multivalue-fields-after-lookup/m-p/349566#M103477</link>
      <description>&lt;P&gt;Thank you all for your solutions.&lt;/P&gt;

&lt;P&gt;I finally solved it by this command&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=myindex 
| lookup mycsv.csv host_ip
| stats count by host_ip,branch,criticity
| fields -count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;it is time consuming but it does the job!&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 15:28:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-multivalue-fields-after-lookup/m-p/349566#M103477</guid>
      <dc:creator>skiourus</dc:creator>
      <dc:date>2017-11-08T15:28:48Z</dc:date>
    </item>
  </channel>
</rss>

