<?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 inside another json object using regex in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/extract-json-inside-another-json-object-using-regex/m-p/578297#M10253</link>
    <description>&lt;LI-CODE lang="markup"&gt;| rex "\"user\":(?&amp;lt;user&amp;gt;[^\}]+\})"
| spath input=user&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 14 Dec 2021 10:30:37 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2021-12-14T10:30:37Z</dc:date>
    <item>
      <title>extract json inside another json object using regex</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/extract-json-inside-another-json-object-using-regex/m-p/578296#M10252</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;&lt;BR /&gt;I have this below data,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{ [-]
   guessedService: ejj
   logGroup: /aws/ejj/cluster
   logStream: kube-apt-15444d2f8c4b216a9cb69ac
   message:{"kind":"Event","stage":"ResponseComplete","requestURI":"/api/v1/namespaces/jej/endpoints/eji.com-aws-eji","verb":"update","user":{"username":"system:serviceaccount:efs:efs-provisioner","uid":"ab5d27b4c-71a4f77323b0","groups":["system:serviceaccounts","system:serviceaccounts:eji","system:authenticated"]},"sourceIPs":["10.0.0.0"],"userAgent":"eji-provisioner/v0.0.0 (linux/amd64) kubernetes/$Format","objectRef":{"resource":"endpoints","namespace":"edd","name":"dds.com-aws-edds","uid":"44ad8-899f-fbc1f4befb2f","apiVersion":"v1","resourceVersion":"8852157"},"responseStatus":{"metadata":{},"code":200}}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Need to extract user:{username:.....} user part alone&amp;nbsp;&lt;BR /&gt;need to write once regex to extarct all the values inside user object..like user.username, user.uid, user.groups&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Dec 2021 10:25:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/extract-json-inside-another-json-object-using-regex/m-p/578296#M10252</guid>
      <dc:creator>sivaranjiniG</dc:creator>
      <dc:date>2021-12-14T10:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: extract json inside another json object using regex</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/extract-json-inside-another-json-object-using-regex/m-p/578297#M10253</link>
      <description>&lt;LI-CODE lang="markup"&gt;| rex "\"user\":(?&amp;lt;user&amp;gt;[^\}]+\})"
| spath input=user&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 14 Dec 2021 10:30:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/extract-json-inside-another-json-object-using-regex/m-p/578297#M10253</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-12-14T10:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: extract json inside another json object using regex</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/extract-json-inside-another-json-object-using-regex/m-p/578298#M10254</link>
      <description>&lt;P&gt;Thanks for the reply, but i need to use props and transforms either index or search time extraction&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Dec 2021 11:02:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/extract-json-inside-another-json-object-using-regex/m-p/578298#M10254</guid>
      <dc:creator>sivaranjiniG</dc:creator>
      <dc:date>2021-12-14T11:02:26Z</dc:date>
    </item>
  </channel>
</rss>

