<?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 Duplicate field values in Splunk events from Cribl in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Duplicate-field-values-in-Splunk-events-from-Cribl/m-p/752659#M119484</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I’m using Cribl Cloud to pull JSON events from an Azure Event Hub and forward them to Splunk via HEC.&lt;/P&gt;&lt;P&gt;Each incoming event (on Cribl) contains a nested array field called&amp;nbsp;records, for example:&lt;/P&gt;&lt;PRE&gt;{
  "&lt;SPAN class=""&gt;records&lt;/SPAN&gt;": &lt;SPAN class=""&gt;[
    {
      "&lt;SPAN class=""&gt;FileName&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;FileType&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;NetworkMessageId&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;RecipientEmailAddress&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;RecipientObjectId&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;ReportId&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;SHA256&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;SenderDisplayName&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;SenderObjectId&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"x"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;SenderFromAddress&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"x"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;FileSize&lt;/SPAN&gt;": x,
      "&lt;SPAN class=""&gt;Timestamp&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;TimeGenerated&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;_ItemId&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;TenantId&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;_TimeReceived&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;_Internal_WorkspaceResourceId&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;Type&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;
    },
    {
            "&lt;SPAN class=""&gt;FileName&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;FileType&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;NetworkMessageId&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;RecipientEmailAddress&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;RecipientObjectId&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;ReportId&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;SHA256&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;SenderDisplayName&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;SenderObjectId&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"x"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;SenderFromAddress&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"x"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;FileSize&lt;/SPAN&gt;": x,
      "&lt;SPAN class=""&gt;Timestamp&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;TimeGenerated&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;_ItemId&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;TenantId&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;_TimeReceived&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;_Internal_WorkspaceResourceId&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;Type&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;
    },
    {
            "&lt;SPAN class=""&gt;FileName&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;FileType&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;NetworkMessageId&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;RecipientEmailAddress&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;RecipientObjectId&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;ReportId&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;SHA256&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;SenderDisplayName&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;SenderObjectId&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"x"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;SenderFromAddress&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"x"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;FileSize&lt;/SPAN&gt;": x,
      "&lt;SPAN class=""&gt;Timestamp&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;TimeGenerated&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;_ItemId&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;TenantId&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;_TimeReceived&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;_Internal_WorkspaceResourceId&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;Type&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;
    }
  ]&lt;/SPAN&gt;,
  "&lt;SPAN class=""&gt;_time&lt;/SPAN&gt;": &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;1756902850.057&lt;/SPAN&gt;&lt;/SPAN&gt;,
  "&lt;SPAN class=""&gt;cribl&lt;/SPAN&gt;": &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"yes"&lt;/SPAN&gt;&lt;/SPAN&gt;,
  "&lt;SPAN class=""&gt;security_event_hub&lt;/SPAN&gt;": &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"yes"&lt;/SPAN&gt;
&lt;/SPAN&gt;}&lt;/PRE&gt;&lt;P&gt;My goal is to split each element of the records array&amp;nbsp;into a separate, flat event. Here’s what I’ve tried:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Unroll function (Cribl) on records to produce individual events&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Flatten function (Cribl) to promote nested fields and delete records array&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;In Splunk, each field’s values are duplicated (and sometimes triplicated), as shown here: (censored values are equals between them)&lt;/P&gt;&lt;DIV class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/40165iA2A2C1EB13516A6B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot.png" alt="Screenshot.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I’ve identified that extracting nested values is causing this anomaly in Splunk.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I’ve tried numerous approaches to resolve it:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Replaced the Flatten function with an Eval expression like that (Cribl):&lt;BR /&gt;Object.assign(__e, Object.assign({}, __e, __e.rec || {})); delete __e.rec; delete __e.records;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Tested various JavaScript snippets in Code functions (Cribl)&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Used JSON Unroll and JSON Decode functions (Cribl)&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Toggled KV_MODE, AUTO_KV_JSON, and INDEXED_EXTRACTIONS on Heavy Forwarders and Search Heads&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;None of these solutions work consistently; in some cases values were even triplicated.&lt;BR /&gt;Do you have any suggestions to resolve this issue?&lt;BR /&gt;&lt;BR /&gt;Thank you in advance for any insights or working examples.&lt;/P&gt;</description>
    <pubDate>Wed, 03 Sep 2025 13:13:57 GMT</pubDate>
    <dc:creator>Raffaele53</dc:creator>
    <dc:date>2025-09-03T13:13:57Z</dc:date>
    <item>
      <title>Duplicate field values in Splunk events from Cribl</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Duplicate-field-values-in-Splunk-events-from-Cribl/m-p/752659#M119484</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I’m using Cribl Cloud to pull JSON events from an Azure Event Hub and forward them to Splunk via HEC.&lt;/P&gt;&lt;P&gt;Each incoming event (on Cribl) contains a nested array field called&amp;nbsp;records, for example:&lt;/P&gt;&lt;PRE&gt;{
  "&lt;SPAN class=""&gt;records&lt;/SPAN&gt;": &lt;SPAN class=""&gt;[
    {
      "&lt;SPAN class=""&gt;FileName&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;FileType&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;NetworkMessageId&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;RecipientEmailAddress&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;RecipientObjectId&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;ReportId&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;SHA256&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;SenderDisplayName&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;SenderObjectId&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"x"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;SenderFromAddress&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"x"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;FileSize&lt;/SPAN&gt;": x,
      "&lt;SPAN class=""&gt;Timestamp&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;TimeGenerated&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;_ItemId&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;TenantId&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;_TimeReceived&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;_Internal_WorkspaceResourceId&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;Type&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;
    },
    {
            "&lt;SPAN class=""&gt;FileName&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;FileType&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;NetworkMessageId&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;RecipientEmailAddress&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;RecipientObjectId&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;ReportId&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;SHA256&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;SenderDisplayName&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;SenderObjectId&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"x"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;SenderFromAddress&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"x"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;FileSize&lt;/SPAN&gt;": x,
      "&lt;SPAN class=""&gt;Timestamp&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;TimeGenerated&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;_ItemId&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;TenantId&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;_TimeReceived&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;_Internal_WorkspaceResourceId&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;Type&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;
    },
    {
            "&lt;SPAN class=""&gt;FileName&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;FileType&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;NetworkMessageId&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;RecipientEmailAddress&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;RecipientObjectId&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;ReportId&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;SHA256&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;SenderDisplayName&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;SenderObjectId&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"x"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;SenderFromAddress&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"x"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;FileSize&lt;/SPAN&gt;": x,
      "&lt;SPAN class=""&gt;Timestamp&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;TimeGenerated&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;_ItemId&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;TenantId&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;_TimeReceived&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;_Internal_WorkspaceResourceId&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;,
      "&lt;SPAN class=""&gt;Type&lt;/SPAN&gt;": &lt;SPAN class=""&gt;"xx"&lt;/SPAN&gt;
    }
  ]&lt;/SPAN&gt;,
  "&lt;SPAN class=""&gt;_time&lt;/SPAN&gt;": &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;1756902850.057&lt;/SPAN&gt;&lt;/SPAN&gt;,
  "&lt;SPAN class=""&gt;cribl&lt;/SPAN&gt;": &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"yes"&lt;/SPAN&gt;&lt;/SPAN&gt;,
  "&lt;SPAN class=""&gt;security_event_hub&lt;/SPAN&gt;": &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"yes"&lt;/SPAN&gt;
&lt;/SPAN&gt;}&lt;/PRE&gt;&lt;P&gt;My goal is to split each element of the records array&amp;nbsp;into a separate, flat event. Here’s what I’ve tried:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Unroll function (Cribl) on records to produce individual events&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Flatten function (Cribl) to promote nested fields and delete records array&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;In Splunk, each field’s values are duplicated (and sometimes triplicated), as shown here: (censored values are equals between them)&lt;/P&gt;&lt;DIV class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/40165iA2A2C1EB13516A6B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot.png" alt="Screenshot.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I’ve identified that extracting nested values is causing this anomaly in Splunk.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I’ve tried numerous approaches to resolve it:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Replaced the Flatten function with an Eval expression like that (Cribl):&lt;BR /&gt;Object.assign(__e, Object.assign({}, __e, __e.rec || {})); delete __e.rec; delete __e.records;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Tested various JavaScript snippets in Code functions (Cribl)&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Used JSON Unroll and JSON Decode functions (Cribl)&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Toggled KV_MODE, AUTO_KV_JSON, and INDEXED_EXTRACTIONS on Heavy Forwarders and Search Heads&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;None of these solutions work consistently; in some cases values were even triplicated.&lt;BR /&gt;Do you have any suggestions to resolve this issue?&lt;BR /&gt;&lt;BR /&gt;Thank you in advance for any insights or working examples.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Sep 2025 13:13:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Duplicate-field-values-in-Splunk-events-from-Cribl/m-p/752659#M119484</guid>
      <dc:creator>Raffaele53</dc:creator>
      <dc:date>2025-09-03T13:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate field values in Splunk events from Cribl</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Duplicate-field-values-in-Splunk-events-from-Cribl/m-p/752664#M119485</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/312805"&gt;@Raffaele53&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im not too familiar with breaking up events in Cribl but if these are being sent as parsed events to Splunk then this should be done before it reaches Splunk.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you preview the output from Cribl do you see the raw json, output, or do you also see the fields?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd start off by making sure you are happy with the output from Cribl using the preview option and then checking the KV_MODE etc is correect on the Splunk side to match as required.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":glowing_star:"&gt;🌟&lt;/span&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Did this answer help you?&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;If so, please consider:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Adding karma to show it was useful&lt;/LI&gt;&lt;LI&gt;Marking it as the solution if it resolved your issue&lt;/LI&gt;&lt;LI&gt;Commenting if you need any clarification&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Your feedback encourages the volunteers in this community to continue contributing&lt;/P&gt;</description>
      <pubDate>Wed, 03 Sep 2025 14:11:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Duplicate-field-values-in-Splunk-events-from-Cribl/m-p/752664#M119485</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-09-03T14:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate field values in Splunk events from Cribl</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Duplicate-field-values-in-Splunk-events-from-Cribl/m-p/752678#M119486</link>
      <description>&lt;P&gt;1. You're showing us only the resulting fields without raw message contents. It's impossible to say what your _raw looks like. But typically duplication of values occurs when you have both fields extracted index time by indexed extraction as well as search-time extracted ones by kv_mode.&lt;/P&gt;&lt;P&gt;2. As&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/170906"&gt;@livehybrid&lt;/a&gt;&amp;nbsp;said - first thing to do is check what's going on in your Cribl and what it does to your data and how it sends it to Splunk. And most probably fix it there. But that's beyond the scope of this forum.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Sep 2025 22:41:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Duplicate-field-values-in-Splunk-events-from-Cribl/m-p/752678#M119486</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2025-09-03T22:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate field values in Splunk events from Cribl</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Duplicate-field-values-in-Splunk-events-from-Cribl/m-p/752696#M119489</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Sorry, I forgot to include the raw event going out from Cribl and coming into Splunk.&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;Raw event extracted from Splunk search:&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{"cribl":"yes","security_event_hub":"yes","NetworkMessageId":"xxx","ReportId":"xxx","Timestamp":"2025-09-04T07:04:14.0000000Z","Url":"xxx","UrlDomain":"xxx","UrlLocation":"Body","TimeGenerated":"2025-09-04T07:04:14.0000000Z","_ItemId":"xxx","TenantId":"xxx","_TimeReceived":"2025-09-04T07:07:00.1639029Z","_Internal_WorkspaceResourceId":"xxx","Type":"EmailUrlInfo"}&lt;/LI-CODE&gt;&lt;P class=""&gt;Each field and its value appear only once.&lt;/P&gt;&lt;P class=""&gt;On Cribl, the event looks the same:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "_time": 1756969933.064,
  "cribl": "yes",
  "security_event_hub": "yes",
  "NetworkMessageId": "xxx",
  "ReportId": "xxx",
  "Timestamp": "2025-09-04T07:08:47.0000000Z",
  "Url": "xxx",
  "UrlDomain": "xxx",
  "UrlLocation": "Body",
  "TimeGenerated": "2025-09-04T07:08:47.0000000Z",
  "_ItemId": "xxx",
  "TenantId": "xxx",
  "_TimeReceived": "2025-09-04T07:12:07.2054241Z",
  "_Internal_WorkspaceResourceId": "xxx",
  "Type": "EmailUrlInfo",
  "cribl_pipe": "Azure_Event_Hub_processing"
}&lt;/LI-CODE&gt;&lt;P class=""&gt;&lt;BR /&gt;I tried different combinations of&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;KV_MODE,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;AUTO_KV_JSON, and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;INDEXED_EXTRACTIONS:&lt;/P&gt;&lt;UL class=""&gt;&lt;LI&gt;&lt;P class=""&gt;On the Heavy Forwarder:&lt;/P&gt;&lt;UL class=""&gt;&lt;LI&gt;&lt;P class=""&gt;KV_MODE=JSON, then&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;KV_MODE=none&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;INDEXED_EXTRACTIONS=JSON&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;AUTO_KV_JSON=none&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;and also all of them combined&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;Afterwards, I tried:&lt;/P&gt;&lt;UL class=""&gt;&lt;LI&gt;&lt;P class=""&gt;On the Search Head:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;KV_MODE=none&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;AUTO_KV_JSON=none&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;On the Heavy Forwarder:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;INDEXED_EXTRACTIONS=JSON&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P class=""&gt;But nothing changed.&lt;/P&gt;&lt;P class=""&gt;On Cribl, I also tried several functions to delete and recreate fields/values, but that didn’t work either.&lt;/P&gt;&lt;P class=""&gt;Do you have any suggestions?&lt;/P&gt;&lt;P class=""&gt;Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Thu, 04 Sep 2025 07:20:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Duplicate-field-values-in-Splunk-events-from-Cribl/m-p/752696#M119489</guid>
      <dc:creator>Raffaele53</dc:creator>
      <dc:date>2025-09-04T07:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate field values in Splunk events from Cribl</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Duplicate-field-values-in-Splunk-events-from-Cribl/m-p/752697#M119490</link>
      <description>&lt;P class=""&gt;Hi,&lt;/P&gt;&lt;P class=""&gt;Thanks for your reply.&lt;BR /&gt;I shared the raw events going out from Cribl and coming into Splunk in my other message.&lt;/P&gt;&lt;P class=""&gt;On the Cribl side, I can only see the raw events being sent to Splunk, while field extraction can only be checked on the Splunk side.&lt;/P&gt;&lt;P class=""&gt;It’s strange because if I don’t extract fields from nested "records" field, everything works correctly.&lt;BR /&gt;It’s as if Cribl leaves some old metadata in the events, referring to fields that were previously modified.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Sep 2025 07:25:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Duplicate-field-values-in-Splunk-events-from-Cribl/m-p/752697#M119490</guid>
      <dc:creator>Raffaele53</dc:creator>
      <dc:date>2025-09-04T07:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate field values in Splunk events from Cribl</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Duplicate-field-values-in-Splunk-events-from-Cribl/m-p/752702#M119493</link>
      <description>&lt;P&gt;If you have a json event, don't use indexed extractions.&lt;/P&gt;&lt;P&gt;Having said that - raw event is one thing but cribl _might_ (I have no idea if it does in your case) be adding indexed fields anyway.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Sep 2025 08:10:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Duplicate-field-values-in-Splunk-events-from-Cribl/m-p/752702#M119493</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2025-09-04T08:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate field values in Splunk events from Cribl</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Duplicate-field-values-in-Splunk-events-from-Cribl/m-p/752709#M119495</link>
      <description>&lt;P&gt;I tried using Indexed Extractions to see if anything would change, but it didn’t work.&lt;BR /&gt;&lt;BR /&gt;On the Cribl side, I only see the event going out and nothing else.&lt;/P&gt;&lt;P&gt;Thanks for the help—hopefully someone’s run into this before and can help me!&lt;/P&gt;</description>
      <pubDate>Thu, 04 Sep 2025 11:48:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Duplicate-field-values-in-Splunk-events-from-Cribl/m-p/752709#M119495</guid>
      <dc:creator>Raffaele53</dc:creator>
      <dc:date>2025-09-04T11:48:08Z</dc:date>
    </item>
  </channel>
</rss>

