<?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 from Nested Json during Index time in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Field-Extraction-from-Nested-Json-during-Index-time/m-p/690973#M114946</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/241735"&gt;@Poojitha&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;to do this you don't need to define fields at index time, but also at search time you can load your data in Data Models.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jun 2024 08:34:07 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2024-06-18T08:34:07Z</dc:date>
    <item>
      <title>Field Extraction from Nested Json during Index time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Field-Extraction-from-Nested-Json-during-Index-time/m-p/690953#M114941</link>
      <description>&lt;P&gt;Hi All,&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;&lt;LI-CODE lang="markup"&gt;TagData [ [-]
     { [-]
       Key: Application
       Value: Test_App
     }
     { [-]
       Key: Email
       Value: test@abc.com
     }
]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have nested json data as above.&lt;BR /&gt;&lt;BR /&gt;I want to extract Email field value and map it to new field - owner_email . This need to be done during indexing time.&lt;BR /&gt;&lt;BR /&gt;With normal splunk search , I am getting way :&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=*_test sourcetype="test:sourcetype" source="*:test" 
| array2object path="TagData" key="Key" value="Value"   
| rename "TagData.Email" as owner_email&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Please help me how to achieve this during indexing time. How do I update props.conf file ?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;PNV&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 06:23:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Field-Extraction-from-Nested-Json-during-Index-time/m-p/690953#M114941</guid>
      <dc:creator>Poojitha</dc:creator>
      <dc:date>2024-06-18T06:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction from Nested Json during Index time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Field-Extraction-from-Nested-Json-during-Index-time/m-p/690954#M114942</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/241735"&gt;@Poojitha&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;the first question is why?&lt;/P&gt;&lt;P&gt;create fields at index time gives additional load to the indexers during indexing, this is possibe if you haven't a big volume of data.&lt;/P&gt;&lt;P&gt;anyway you have to use the way to create fields at index time descripted at&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.2.1/Data/Configureindex-timefieldextraction" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.2.1/Data/Configureindex-timefieldextraction&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;an ingestions eval then you have to use an ingest eval action descripted at&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.2.1/Data/IngestEval" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.2.1/Data/IngestEval&lt;/A&gt;&lt;/P&gt;&lt;P&gt;in props.conf&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[your_sourcetype]
TRANSFORMS-eval1 =eval1&lt;/LI-CODE&gt;&lt;P&gt;in transforms:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[eval1]
INGEST_EVAL = field3=json_extract(email,Tagdata{}.Email)&lt;/LI-CODE&gt;&lt;P&gt;(please check the path of your json field&lt;/P&gt;&lt;P&gt;in fields.conf&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[username]
INDEXED=true&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 06:28:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Field-Extraction-from-Nested-Json-during-Index-time/m-p/690954#M114942</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-06-18T06:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction from Nested Json during Index time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Field-Extraction-from-Nested-Json-during-Index-time/m-p/690959#M114944</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;: Thanks for your response.&lt;BR /&gt;&lt;BR /&gt;Story in short, I want to map &lt;STRONG&gt;certificate details from one of the sources&lt;/STRONG&gt; to fields in &lt;STRONG&gt;certificate datamodel.&lt;/STRONG&gt;&amp;nbsp; &lt;A href="https://docs.splunk.com/Documentation/CIM/5.3.2/User/Certificates" target="_blank"&gt;https://docs.splunk.com/Documentation/CIM/5.3.2/User/Certificates. &lt;/A&gt;&lt;BR /&gt;This is my requirment.&lt;BR /&gt;&lt;BR /&gt;I have mapped two fields using FIELDALIAS - ssl_issuer and ssl_end_time.&lt;BR /&gt;&lt;BR /&gt;Now I want to map TagData.Email to ssl_issuer_email. I am using these fields further.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;PNV&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 07:18:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Field-Extraction-from-Nested-Json-during-Index-time/m-p/690959#M114944</guid>
      <dc:creator>Poojitha</dc:creator>
      <dc:date>2024-06-18T07:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction from Nested Json during Index time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Field-Extraction-from-Nested-Json-during-Index-time/m-p/690973#M114946</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/241735"&gt;@Poojitha&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;to do this you don't need to define fields at index time, but also at search time you can load your data in Data Models.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 08:34:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Field-Extraction-from-Nested-Json-during-Index-time/m-p/690973#M114946</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-06-18T08:34:07Z</dc:date>
    </item>
  </channel>
</rss>

