<?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: mvexpand &amp; split command not working on JSON data in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/mvexpand-split-command-not-working-on-JSON-data/m-p/380188#M68664</link>
    <description>&lt;P&gt;@ashish9433 I am also facing the same issue where splunk is unable to run split and mvexpand on the json data. Did you find a resolution to your question? If so, could you share it?&lt;/P&gt;</description>
    <pubDate>Tue, 17 Mar 2020 18:32:27 GMT</pubDate>
    <dc:creator>vsingla1</dc:creator>
    <dc:date>2020-03-17T18:32:27Z</dc:date>
    <item>
      <title>mvexpand &amp; split command not working on JSON data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/mvexpand-split-command-not-working-on-JSON-data/m-p/380186#M68662</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have JSON data, which seems to be properly prased. I have a field which holds multiple IPs in a new lined when seen in formatted events and seperated with \n when seen in un-formatted.&lt;/P&gt;

&lt;P&gt;Check the below screenshot&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/6308iEF5C18DEB91FCAB1/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 am unable to use mvexpand or split or even i tried to use makemv command but it doesn't work as expected.&lt;/P&gt;

&lt;P&gt;Any clue, how to handle this situation, when i do a stats or table i want IPs as multivalued whereas currently it is displayed as just a text with IPs separated with space.&lt;/P&gt;</description>
      <pubDate>Sun, 23 Dec 2018 17:03:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/mvexpand-split-command-not-working-on-JSON-data/m-p/380186#M68662</guid>
      <dc:creator>ashish9433</dc:creator>
      <dc:date>2018-12-23T17:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: mvexpand &amp; split command not working on JSON data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/mvexpand-split-command-not-working-on-JSON-data/m-p/380187#M68663</link>
      <description>&lt;P&gt;maybe something like this:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;... | rex "\"ips\"\:\"(?&amp;lt;all_ips&amp;gt;[^\"]+)"&lt;/CODE&gt; &lt;BR /&gt;
this will capture all ips as a long string and assign it as a value to the field: "all_ips"&amp;gt;&lt;BR /&gt;
now go to the &lt;CODE&gt;makemv&lt;/CODE&gt; and &lt;CODE&gt;mvexpand&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;... | makemv all_ips delim = "\n" | mvexpand all_ips&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;hope it helps&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:28:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/mvexpand-split-command-not-working-on-JSON-data/m-p/380187#M68663</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2020-09-29T22:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: mvexpand &amp; split command not working on JSON data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/mvexpand-split-command-not-working-on-JSON-data/m-p/380188#M68664</link>
      <description>&lt;P&gt;@ashish9433 I am also facing the same issue where splunk is unable to run split and mvexpand on the json data. Did you find a resolution to your question? If so, could you share it?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2020 18:32:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/mvexpand-split-command-not-working-on-JSON-data/m-p/380188#M68664</guid>
      <dc:creator>vsingla1</dc:creator>
      <dc:date>2020-03-17T18:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: mvexpand &amp; split command not working on JSON data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/mvexpand-split-command-not-working-on-JSON-data/m-p/380189#M68665</link>
      <description>&lt;P&gt;@visngla1&lt;BR /&gt;
What is your log?&lt;BR /&gt;
If not, ask another question.&lt;/P&gt;</description>
      <pubDate>Sat, 04 Apr 2020 21:46:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/mvexpand-split-command-not-working-on-JSON-data/m-p/380189#M68665</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-04T21:46:35Z</dc:date>
    </item>
  </channel>
</rss>

