<?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: Extract JSON objects in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Extract-JSON-objects/m-p/567281#M197683</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp; Sorry my bad, wrong json. can you please try now. I have tested this json on jsonviewer.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{"properties": {"nextLink": null, 
"columns": [
{"name": "Cost", "type": "Number"}, 
{"name": "Usage", "type": "Number"}, 
{"name": "Charge", "type": "String"},
{"name": "Type", "type": "String"}, 
{"name": "Res", "type": "String"}, 
{"name": "ResGF", "type": "String"}, 
{"name": "Name", "type": "String"}, 
{"name": "Reso", "type": "String"}, 
{"name": "Tag", "type": "Array"}, 
{"name": "Wallet", "type": "String"}], 
"rows": [[0.01564, 20200708, "usage", "gcp", "unknown", "hhhh", "newwww", "zyyyyy", ["\"app\":\"hhh\"", "\"created\":\"hhh\""], "USD"],[0.064, 20200708, "usage", "gcp", "new", "zyy", "hhh", "zyyyyy", ["\"app\":\"work\"", "\"hum\":\"zhhh\""], "USD"]]}}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Sep 2021 15:51:16 GMT</pubDate>
    <dc:creator>vishaltaneja070</dc:creator>
    <dc:date>2021-09-16T15:51:16Z</dc:date>
    <item>
      <title>Extract JSON objects</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-JSON-objects/m-p/567247#M197665</link>
      <description>&lt;P&gt;&lt;SPAN&gt;How can i extract this:&lt;BR /&gt;"properties": {"nextLink": null,&lt;BR /&gt;"columns": [&lt;BR /&gt;{"name": "Cost", "type": "Number"},&lt;BR /&gt;{"name": "Date", "type": "Number"},&lt;BR /&gt;{"name": "Charge", "type": "String"},&lt;BR /&gt;{"name": "Publisher", "type": "String"},&lt;BR /&gt;{"name": "Resource", "type": "String"},&lt;BR /&gt;{"name": "Resource", "type": "String"},&lt;BR /&gt;{"name": "Service", "type": "Array"},&lt;BR /&gt;{"name": "Standard", "type": "String"},&lt;BR /&gt;"rows": [&lt;BR /&gt;[2.06, 20210807, "usage", "uuuu", "hhh", "gd", "bandwidth", "[app:"new","type":"band"]", "HHH"],&lt;BR /&gt;[2.206, 20210807, "usage", "uuuhhh", "ggg", "gd", "bandwidth", "[app:"old","type":"land"]", "YYY"] ]&lt;BR /&gt;&lt;BR /&gt;No of columns can be increased.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;Can you help?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Sep 2021 11:59:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-JSON-objects/m-p/567247#M197665</guid>
      <dc:creator>vishaltaneja070</dc:creator>
      <dc:date>2021-09-16T11:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: Extract JSON objects</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-JSON-objects/m-p/567251#M197668</link>
      <description>&lt;P&gt;You posted about this a month ago - did this solution not work?&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.splunk.com/t5/Splunk-Search/Extract-JSON-objects/m-p/562583#M196043" target="_self"&gt;https://community.splunk.com/t5/Splunk-Search/Extract-JSON-objects/m-p/562583#M196043&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Sep 2021 12:19:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-JSON-objects/m-p/567251#M197668</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-09-16T12:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: Extract JSON objects</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-JSON-objects/m-p/567252#M197669</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Its looks same but its different,&lt;BR /&gt;now it has json object inside rows also:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"[app:"new","type":"band"]",&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;which is causing issue.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Sep 2021 12:27:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-JSON-objects/m-p/567252#M197669</guid>
      <dc:creator>vishaltaneja070</dc:creator>
      <dc:date>2021-09-16T12:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: Extract JSON objects</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-JSON-objects/m-p/567256#M197671</link>
      <description>&lt;P&gt;The issue is note to do with it trying to be a JSON object (app should be in double quotes to be JSON), the problem is that there are embedded quotes in the string. Can you get the format changed to escape the embedded quotes with a backslash?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Sep 2021 12:58:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-JSON-objects/m-p/567256#M197671</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-09-16T12:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: Extract JSON objects</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-JSON-objects/m-p/567257#M197672</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Sorry app is also in double quotes only&lt;BR /&gt;&lt;SPAN&gt;"properties": {"nextLink": null,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"columns": [&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{"name": "Cost", "type": "Number"},&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{"name": "Date", "type": "Number"},&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{"name": "Charge", "type": "String"},&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{"name": "Publisher", "type": "String"},&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{"name": "Resource", "type": "String"},&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{"name": "Resource", "type": "String"},&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{"name": "Service", "type": "Array"},&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{"name": "Standard", "type": "String"},&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"rows": [&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[2.06, 20210807, "usage", "uuuu", "hhh", "gd", "bandwidth", ["app":"new","type":"band"], "HHH"],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[2.206, 20210807, "usage", "uuuhhh", "ggg", "gd", "bandwidth", ["app":"old","type":"land"], "YYY"] ]&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Sep 2021 13:20:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-JSON-objects/m-p/567257#M197672</guid>
      <dc:creator>vishaltaneja070</dc:creator>
      <dc:date>2021-09-16T13:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: Extract JSON objects</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-JSON-objects/m-p/567269#M197676</link>
      <description>&lt;P&gt;This is not valid JSON syntax, the columns collection should be closed with a right brace and the embedded collection should be converted to an object e.g.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{"properties": {"nextLink": null,
"columns": [
{"name": "Cost", "type": "Number"},
{"name": "Date", "type": "Number"},
{"name": "Charge", "type": "String"},
{"name": "Publisher", "type": "String"},
{"name": "Resource", "type": "String"},
{"name": "Resource", "type": "String"},
{"name": "Service", "type": "Array"},
{"name": "Standard", "type": "String"}
],
"rows": [
[2.06, 20210807, "usage", "uuuu", "hhh", "gd", "bandwidth", {"app":"new","type":"band"}, "HHH"],
[2.206, 20210807, "usage", "uuuhhh", "ggg", "gd", "bandwidth", {"app":"old","type":"land"}, "YYY"] ]
}&lt;/LI-CODE&gt;&lt;P&gt;Please can you check your real data?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Sep 2021 14:38:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-JSON-objects/m-p/567269#M197676</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-09-16T14:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: Extract JSON objects</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-JSON-objects/m-p/567281#M197683</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp; Sorry my bad, wrong json. can you please try now. I have tested this json on jsonviewer.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{"properties": {"nextLink": null, 
"columns": [
{"name": "Cost", "type": "Number"}, 
{"name": "Usage", "type": "Number"}, 
{"name": "Charge", "type": "String"},
{"name": "Type", "type": "String"}, 
{"name": "Res", "type": "String"}, 
{"name": "ResGF", "type": "String"}, 
{"name": "Name", "type": "String"}, 
{"name": "Reso", "type": "String"}, 
{"name": "Tag", "type": "Array"}, 
{"name": "Wallet", "type": "String"}], 
"rows": [[0.01564, 20200708, "usage", "gcp", "unknown", "hhhh", "newwww", "zyyyyy", ["\"app\":\"hhh\"", "\"created\":\"hhh\""], "USD"],[0.064, 20200708, "usage", "gcp", "new", "zyy", "hhh", "zyyyyy", ["\"app\":\"work\"", "\"hum\":\"zhhh\""], "USD"]]}}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Sep 2021 15:51:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-JSON-objects/m-p/567281#M197683</guid>
      <dc:creator>vishaltaneja070</dc:creator>
      <dc:date>2021-09-16T15:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Extract JSON objects</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-JSON-objects/m-p/567282#M197684</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp; Sorry my bad, wrong json. can you please try now. I have tested this json on jsonviewer.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{"properties": {"nextLink": null, 
"columns": [
{"name": "Cost", "type": "Number"}, 
{"name": "Usage", "type": "Number"}, 
{"name": "Charge", "type": "String"},
{"name": "Type", "type": "String"}, 
{"name": "Res", "type": "String"}, 
{"name": "ResGF", "type": "String"}, 
{"name": "Name", "type": "String"}, 
{"name": "Reso", "type": "String"}, 
{"name": "Tag", "type": "Array"}, 
{"name": "Wallet", "type": "String"}], 
"rows": [[0.01564, 20200708, "usage", "gcp", "unknown", "hhhh", "newwww", "zyyyyy", ["\"app\":\"hhh\"", "\"created\":\"hhh\""], "USD"],[0.064, 20200708, "usage", "gcp", "new", "zyy", "hhh", "zyyyyy", ["\"app\":\"work\"", "\"hum\":\"zhhh\""], "USD"]]}}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Sep 2021 15:51:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-JSON-objects/m-p/567282#M197684</guid>
      <dc:creator>vishaltaneja070</dc:creator>
      <dc:date>2021-09-16T15:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: Extract JSON objects</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-JSON-objects/m-p/567410#M197731</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;Just tagged you if you have seen my response&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2021 12:52:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-JSON-objects/m-p/567410#M197731</guid>
      <dc:creator>vishaltaneja070</dc:creator>
      <dc:date>2021-09-17T12:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Extract JSON objects</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-JSON-objects/m-p/567442#M197749</link>
      <description>&lt;P&gt;So the issue is with the embedded array and knowing which "column" it is in, and knowing how many elements there are in each instance of the array. spath can extract it e.g. rows.{}{}{} but they all end up in the same mv field and you can't tell how many belong to the first row and how many belong to the second row etc. You would also have to inspect the type fields for the column to work out which field requires an array of elements. I haven't figured out a way to do this.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2021 14:13:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-JSON-objects/m-p/567442#M197749</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-09-17T14:13:39Z</dc:date>
    </item>
  </channel>
</rss>

