<?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: Splitting or searching a MV JSON in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splitting-or-searching-a-MV-JSON/m-p/334488#M164400</link>
    <description>&lt;P&gt;is it possible to extract a field from a result contained in a JSON field?&lt;BR /&gt;
Ex; result of field payment.log: {"data":{"lancto_dto_list":,"sld_dt":{"lim":10.00,"sld_disp":37.80,"disp":40.80}}}&lt;BR /&gt;
I need the last field "disp".&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 03:57:31 GMT</pubDate>
    <dc:creator>anishinha</dc:creator>
    <dc:date>2020-09-30T03:57:31Z</dc:date>
    <item>
      <title>Splitting or searching a MV JSON</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splitting-or-searching-a-MV-JSON/m-p/334483#M164395</link>
      <description>&lt;P&gt;I have a json array like:&lt;/P&gt;

&lt;P&gt;How can I search or split that? The search:&lt;/P&gt;

&lt;P&gt;index=jira "issues{}.fields.customfield_14028"=521 | head 1 | stats  sum("issues{}.fields.customfield_14233") by "issues{}.fields.summary"&lt;/P&gt;

&lt;P&gt;gives all issues....also where issues{}.fields.customfield_14028"&amp;lt;&amp;gt;521&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:11:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splitting-or-searching-a-MV-JSON/m-p/334483#M164395</guid>
      <dc:creator>moseisleydk</dc:creator>
      <dc:date>2020-09-29T17:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting or searching a MV JSON</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splitting-or-searching-a-MV-JSON/m-p/334484#M164396</link>
      <description>&lt;P&gt;Hi @moseisleydk,&lt;/P&gt;

&lt;P&gt;Can you please try this search?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=jira "issues{}.fields.customfield_14028"=521 
| head 1 
| rename "issues{}.fields.customfield_14233" as customfield_14233, "issues{}.fields.summary" as summary
| eval tempField=mvzip(customfield_14233,summary) 
| stats count by _time,tempField
| eval customfield_14233=mvindex(split(tempField,","),0), summary=mvindex(split(tempField,","),1)
| stats sum(customfield_14233) by summary
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2017 12:58:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splitting-or-searching-a-MV-JSON/m-p/334484#M164396</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2017-12-12T12:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting or searching a MV JSON</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splitting-or-searching-a-MV-JSON/m-p/334485#M164397</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Thanks, it still "ignores" the&lt;/P&gt;

&lt;P&gt;"issues{}.fields.customfield_14028"=521 &lt;/P&gt;

&lt;P&gt;and reports all issues, not only the &lt;/P&gt;

&lt;P&gt;customfield_14028:   521&lt;/P&gt;

&lt;P&gt;issues.&lt;/P&gt;

&lt;P&gt;Kind Regards,&lt;/P&gt;

&lt;P&gt;Normann&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2017 13:08:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splitting-or-searching-a-MV-JSON/m-p/334485#M164397</guid>
      <dc:creator>moseisleydk</dc:creator>
      <dc:date>2017-12-12T13:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting or searching a MV JSON</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splitting-or-searching-a-MV-JSON/m-p/334486#M164398</link>
      <description>&lt;P&gt;Can you please share sample events?  use &lt;CODE&gt;101010&lt;/CODE&gt; for same.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2017 13:17:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splitting-or-searching-a-MV-JSON/m-p/334486#M164398</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2017-12-12T13:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting or searching a MV JSON</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splitting-or-searching-a-MV-JSON/m-p/334487#M164399</link>
      <description>&lt;P&gt;Found it after some test and thanks to &lt;A href="https://answers.splunk.com/answers/366957/how-do-i-get-splunk-to-extract-nested-json-arrays.html" target="_blank"&gt;https://answers.splunk.com/answers/366957/how-do-i-get-splunk-to-extract-nested-json-arrays.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;index=jira | head 1  | spath output=x path=issues{} | fields - _raw | fields x | mvexpand x | spath input=x | rename fields{} as fields | mvexpand fields | search fields.customfield_14028=521 | table key,fields.summary,fields.customfield_12931.value,fields.customfield_12927,fields.customfield_14233,fields.customfield_12932.value,price&lt;/P&gt;

&lt;P&gt;Give a nice table for all "events" where fields.customfield_14028=521&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:13:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splitting-or-searching-a-MV-JSON/m-p/334487#M164399</guid>
      <dc:creator>moseisleydk</dc:creator>
      <dc:date>2020-09-29T17:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting or searching a MV JSON</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splitting-or-searching-a-MV-JSON/m-p/334488#M164400</link>
      <description>&lt;P&gt;is it possible to extract a field from a result contained in a JSON field?&lt;BR /&gt;
Ex; result of field payment.log: {"data":{"lancto_dto_list":,"sld_dt":{"lim":10.00,"sld_disp":37.80,"disp":40.80}}}&lt;BR /&gt;
I need the last field "disp".&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:57:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splitting-or-searching-a-MV-JSON/m-p/334488#M164400</guid>
      <dc:creator>anishinha</dc:creator>
      <dc:date>2020-09-30T03:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting or searching a MV JSON</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splitting-or-searching-a-MV-JSON/m-p/334489#M164401</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;| makeresults
| eval _raw="payment.log: {\"data\":{\"lancto_dto_list\":,\"sld_dt\":{\"lim\":10.00,\"sld_disp\":37.80,\"disp\":40.80}}}"
| rex "disp.:(?&amp;lt;disp&amp;gt;[\d.]+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 31 Jan 2020 11:59:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splitting-or-searching-a-MV-JSON/m-p/334489#M164401</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-01-31T11:59:58Z</dc:date>
    </item>
  </channel>
</rss>

