<?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 Json array using Splunk Search commands?? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-Json-array-using-Splunk-Search-commands/m-p/289272#M87526</link>
    <description>&lt;P&gt;Hi @ajayabburi508,&lt;BR /&gt;
try this regex:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|rex max_match=0 field=geom "\[(?&amp;lt;value1&amp;gt;-[^,]+),(?&amp;lt;value2&amp;gt;[^]]+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;after this to separate multivalue fields you can try :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|eval combined=mvzip(value1,value2)| mvexpand combined
 | makemv combined delim=","  
|eval lat=mvindex(combined,0), lon=mvindex(combined,1)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 17 Feb 2018 08:12:11 GMT</pubDate>
    <dc:creator>493669</dc:creator>
    <dc:date>2018-02-17T08:12:11Z</dc:date>
    <item>
      <title>How to split Json array using Splunk Search commands??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-Json-array-using-Splunk-Search-commands/m-p/289271#M87525</link>
      <description>&lt;P&gt;My Query is :  &lt;/P&gt;

&lt;P&gt;|inputlookup geo_jj  | eval types = "{\"geom\": " + geom + "}" | spath input=types  &lt;/P&gt;

&lt;P&gt;i got output in geom column  is :&lt;/P&gt;

&lt;P&gt;geom&lt;/P&gt;

&lt;P&gt;{"type":"MultiPolygon","coordinates":[[[[-105.8203125,31.052934646606445],[-105.8203125,48.806861877441406],[-88.06640625,48.806861877441406],[-88.06640625,31.052934646606445],[-105.8203125,31.052934646606445]]]]}&lt;/P&gt;

&lt;P&gt;But  i want output like this &lt;/P&gt;

&lt;P&gt;value1                           value2&lt;BR /&gt;
-105.8203125                31.052934646606445&lt;BR /&gt;
-105.8203125                 48.806861877441406&lt;BR /&gt;
-88.06640625               48.806861877441406&lt;BR /&gt;
-88.06640625              31.052934646606445&lt;BR /&gt;
-105.8203125             31.052934646606445&lt;/P&gt;

&lt;P&gt;Please help me for this&lt;/P&gt;</description>
      <pubDate>Sat, 17 Feb 2018 07:48:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-Json-array-using-Splunk-Search-commands/m-p/289271#M87525</guid>
      <dc:creator>ajayabburi508</dc:creator>
      <dc:date>2018-02-17T07:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to split Json array using Splunk Search commands??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-Json-array-using-Splunk-Search-commands/m-p/289272#M87526</link>
      <description>&lt;P&gt;Hi @ajayabburi508,&lt;BR /&gt;
try this regex:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|rex max_match=0 field=geom "\[(?&amp;lt;value1&amp;gt;-[^,]+),(?&amp;lt;value2&amp;gt;[^]]+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;after this to separate multivalue fields you can try :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|eval combined=mvzip(value1,value2)| mvexpand combined
 | makemv combined delim=","  
|eval lat=mvindex(combined,0), lon=mvindex(combined,1)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 17 Feb 2018 08:12:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-Json-array-using-Splunk-Search-commands/m-p/289272#M87526</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-02-17T08:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to split Json array using Splunk Search commands??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-Json-array-using-Splunk-Search-commands/m-p/289273#M87527</link>
      <description>&lt;P&gt;Thanks  493669 alot  ,it is working good&lt;/P&gt;</description>
      <pubDate>Sat, 17 Feb 2018 09:24:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-Json-array-using-Splunk-Search-commands/m-p/289273#M87527</guid>
      <dc:creator>ajayabburi508</dc:creator>
      <dc:date>2018-02-17T09:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to split Json array using Splunk Search commands??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-Json-array-using-Splunk-Search-commands/m-p/289274#M87528</link>
      <description>&lt;P&gt;Glad to help:) please accept the answer so that it will no longer open.&lt;/P&gt;</description>
      <pubDate>Sat, 17 Feb 2018 09:48:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-Json-array-using-Splunk-Search-commands/m-p/289274#M87528</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-02-17T09:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to split Json array using Splunk Search commands??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-Json-array-using-Splunk-Search-commands/m-p/289275#M87529</link>
      <description>&lt;P&gt;Accepted bro&lt;/P&gt;</description>
      <pubDate>Sat, 17 Feb 2018 10:31:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-Json-array-using-Splunk-Search-commands/m-p/289275#M87529</guid>
      <dc:creator>ajayabburi508</dc:creator>
      <dc:date>2018-02-17T10:31:35Z</dc:date>
    </item>
  </channel>
</rss>

