<?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: Field extraction using props and transforms in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Field-extraction-using-props-and-transforms/m-p/579184#M10256</link>
    <description>&lt;P&gt;You should be getting all the fields being extracted just with INDEXED_EXTRACTION. As your data in proper JSON format, you don't even need those transforms.&lt;/P&gt;&lt;P&gt;You should see fields like: logGroup, message.kind, message.user.username, message.user.uid, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Though alternatively, you can use search time extraction, which is what I would do: Using KV_MODE=json instead of INDEXED_EXTRACTION=json.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this below configuration if you can on test system:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[json_no_new]
KV_MODE = json
LINE_BREAKER = }([\r\n]+)
SHOULD_LINEMERGE = false
NO_BINARY_CHECK = true
disabled = false
pulldown_type = true&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You may need to change the SHOULD_LINEMERGE along with other configurations to make sure the data being extracted in the right events according to your _raw data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You should see fields like with search-time extraction as well: logGroup, message.kind, message.user.username, message.user.uid, etc.&lt;/P&gt;&lt;P&gt;Fields are hierarchical with the use of .(dot).&lt;/P&gt;</description>
    <pubDate>Thu, 23 Dec 2021 13:19:16 GMT</pubDate>
    <dc:creator>VatsalJagani</dc:creator>
    <dc:date>2021-12-23T13:19:16Z</dc:date>
    <item>
      <title>Field extraction using props and transforms</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Field-extraction-using-props-and-transforms/m-p/578309#M10255</link>
      <description>&lt;P&gt;Hello,&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;i already a below props and transforms to extract all the fields from message.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Props.conf&lt;/STRONG&gt;&lt;BR /&gt;[json_no_new]&lt;BR /&gt;REPORT-json = report-json,report-json-new&lt;BR /&gt;KV_MODE = none&lt;BR /&gt;INDEXED_EXTRACTIONS = json&lt;BR /&gt;LINE_BREAKER = ^{&lt;BR /&gt;NO_BINARY_CHECK = true&lt;BR /&gt;disabled = false&lt;BR /&gt;pulldown_type = true&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Transforms.conf&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;[report-json]&lt;BR /&gt;SOURCE_KEY = message&lt;BR /&gt;REGEX = (?P&amp;lt;json2&amp;gt;{.+)&lt;BR /&gt;DEST_KEY = _raw&lt;/P&gt;&lt;P&gt;[report-json-new]&lt;BR /&gt;REGEX = \\*"([^"]+)\":[\s]*"*(\[.*?\]|\{.*?\}"*\}*|[^"]+|\d+),*&lt;BR /&gt;FORMAT = $1::$2&lt;BR /&gt;SOURCE_KEY = json2&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Now from the result i have below field with json value&lt;BR /&gt;&lt;BR /&gt;user =&amp;nbsp;{"username":"system:serviceaccount:efs:efs-provisioner","uid":"ab5d27b4c-71a4f77323b0","groups":["system:serviceaccounts","system:serviceaccounts:eji","system:authenticated"]}&lt;BR /&gt;&lt;BR /&gt;again with props and transform i want to extract values from user field.&lt;BR /&gt;&lt;BR /&gt;Please some one let me know if thats possible&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 14 Dec 2021 12:06:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Field-extraction-using-props-and-transforms/m-p/578309#M10255</guid>
      <dc:creator>sivaranjiniG</dc:creator>
      <dc:date>2021-12-14T12:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: Field extraction using props and transforms</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Field-extraction-using-props-and-transforms/m-p/579184#M10256</link>
      <description>&lt;P&gt;You should be getting all the fields being extracted just with INDEXED_EXTRACTION. As your data in proper JSON format, you don't even need those transforms.&lt;/P&gt;&lt;P&gt;You should see fields like: logGroup, message.kind, message.user.username, message.user.uid, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Though alternatively, you can use search time extraction, which is what I would do: Using KV_MODE=json instead of INDEXED_EXTRACTION=json.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this below configuration if you can on test system:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[json_no_new]
KV_MODE = json
LINE_BREAKER = }([\r\n]+)
SHOULD_LINEMERGE = false
NO_BINARY_CHECK = true
disabled = false
pulldown_type = true&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You may need to change the SHOULD_LINEMERGE along with other configurations to make sure the data being extracted in the right events according to your _raw data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You should see fields like with search-time extraction as well: logGroup, message.kind, message.user.username, message.user.uid, etc.&lt;/P&gt;&lt;P&gt;Fields are hierarchical with the use of .(dot).&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 13:19:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Field-extraction-using-props-and-transforms/m-p/579184#M10256</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2021-12-23T13:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: Field extraction using props and transforms</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Field-extraction-using-props-and-transforms/m-p/579186#M10257</link>
      <description>&lt;P&gt;As far as I remember, the automatic json extraction (contrary to the spath command) does not care about attributes hierarchy.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 13:35:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Field-extraction-using-props-and-transforms/m-p/579186#M10257</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2021-12-23T13:35:40Z</dc:date>
    </item>
  </channel>
</rss>

