<?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: Finding data in Nested JSON in Splunk to create a splunk report in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/Finding-data-in-Nested-JSON-in-Splunk-to-create-a-splunk-report/m-p/549697#M9029</link>
    <description>&lt;P&gt;What part of your example data contains the ID data you want to extract. That data does not look to be a valid JSON object, i.e. _raw seems to be containing a quoted nested JSON object.&lt;/P&gt;&lt;P&gt;Is it that Id: "&amp;lt;&amp;lt;&amp;gt;&amp;gt;" field? If so, then the simplest way to extract that is&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=_raw "\"Id\":\"(?&amp;lt;ID&amp;gt;[^\"]*)"&lt;/LI-CODE&gt;&lt;P&gt;OR&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=_raw "\"Id\":\"&amp;lt;&amp;lt;(?&amp;lt;ID&amp;gt;[^&amp;gt;]*)"&lt;/LI-CODE&gt;&lt;P&gt;If you don't want the &amp;lt;&amp;lt;&amp;gt;&amp;gt; parts&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Apr 2021 22:43:46 GMT</pubDate>
    <dc:creator>bowesmana</dc:creator>
    <dc:date>2021-04-28T22:43:46Z</dc:date>
    <item>
      <title>Finding data in Nested JSON in Splunk to create a splunk report</title>
      <link>https://community.splunk.com/t5/Reporting/Finding-data-in-Nested-JSON-in-Splunk-to-create-a-splunk-report/m-p/549681#M9028</link>
      <description>&lt;P&gt;I&amp;nbsp;&lt;/P&gt;&lt;P&gt;need help in extracting&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;ID&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;from nested JSON data in Splunk for including this in report. Sample data:&lt;/P&gt;&lt;P&gt;{"preview":false,"result":{"_raw":"{"severity":"INFO","logger":"eu.notas.fns.###.utility.LoggingUtil","thread":"qtp1951963537-1006","message":{"###RequestId":"&amp;lt;&amp;lt;&amp;gt;&amp;gt;","msgDesc":"Image id Successfully ","fileName":null,"errorDesc":null,"requestType":"API","destination":"###_SERVICES","errorCode":null,"source":"EXTERNAL_issue-in","externalRequestId":"&amp;lt;&amp;lt;&amp;gt;&amp;gt;","responseCode":null,"Id":"&amp;lt;&amp;lt;&amp;gt;&amp;gt;","service":"notas-###-issue-in-data-service","stackTrace":null}}","_time":"2021-04-28T11:47:51.318+0200","host":"notas-###-issue-in-data-service-147-qthsj","index":"###_app_prod","linecount":"1","logger":"eu.notas.fns.###.utility.LoggingUtil","message.destination":"###_SERVICES","message.errorCode":"null","message.errorDesc":"null","message.externalRequestId":"&amp;lt;&amp;lt;&amp;gt;&amp;gt;","message.fileName":"null","message.Id":"&amp;lt;&amp;lt;&amp;gt;&amp;gt;","message.###RequestId":"&amp;lt;&amp;lt;&amp;gt;&amp;gt;","message.msgDesc":"Image id Successfully ","message.requestType":"API","message.responseCode":"null","message.service":"notas-###-issue-in-data-service","message.source":"EXTERNAL_issue-in","message.stackTrace":"null","punct":"{"":"","":".....","":"-","":{"":"----","":"_____",","severity":"INFO","source":"###","sourcetype":"###-prod-log","splunk_server":"no1-psplunkidx-14","thread":"qtp1951963537-1006","unix_category":"all_hosts","unix_group":"default"}}&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2021 19:06:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Finding-data-in-Nested-JSON-in-Splunk-to-create-a-splunk-report/m-p/549681#M9028</guid>
      <dc:creator>Denialsams</dc:creator>
      <dc:date>2021-04-28T19:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: Finding data in Nested JSON in Splunk to create a splunk report</title>
      <link>https://community.splunk.com/t5/Reporting/Finding-data-in-Nested-JSON-in-Splunk-to-create-a-splunk-report/m-p/549697#M9029</link>
      <description>&lt;P&gt;What part of your example data contains the ID data you want to extract. That data does not look to be a valid JSON object, i.e. _raw seems to be containing a quoted nested JSON object.&lt;/P&gt;&lt;P&gt;Is it that Id: "&amp;lt;&amp;lt;&amp;gt;&amp;gt;" field? If so, then the simplest way to extract that is&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=_raw "\"Id\":\"(?&amp;lt;ID&amp;gt;[^\"]*)"&lt;/LI-CODE&gt;&lt;P&gt;OR&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=_raw "\"Id\":\"&amp;lt;&amp;lt;(?&amp;lt;ID&amp;gt;[^&amp;gt;]*)"&lt;/LI-CODE&gt;&lt;P&gt;If you don't want the &amp;lt;&amp;lt;&amp;gt;&amp;gt; parts&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2021 22:43:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Finding-data-in-Nested-JSON-in-Splunk-to-create-a-splunk-report/m-p/549697#M9029</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2021-04-28T22:43:46Z</dc:date>
    </item>
  </channel>
</rss>

