<?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: How to configure heavy forwarder to extract multivalue nested json ? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-heavy-forwarder-to-extract-multivalue-nested/m-p/650119#M110481</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/163730"&gt;@venkatasri&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you for your suggestion. Yes, after formatting data in proper JSON format, it extracted successfully.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Further, we would like to move 'm1:&amp;nbsp; downsample' key value pair which is in Selector in same JSON message header part below host and above pid. Is this possible from splunk heavy forwarder ? If yes, what configuration changes I need to apply on the message ?&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;Prashant&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jul 2023 08:46:32 GMT</pubDate>
    <dc:creator>prashant5847</dc:creator>
    <dc:date>2023-07-12T08:46:32Z</dc:date>
    <item>
      <title>How to configure heavy forwarder to extract multivalue nested json ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-heavy-forwarder-to-extract-multivalue-nested/m-p/648697#M110261</link>
      <description>&lt;P&gt;I have following set up in place and I am sending events to splunk cloud from K8S cluster. I am using HF for data manipulation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;K8S cluster&amp;nbsp; --&amp;gt; Heavy Forwarder --&amp;gt; Splunk Cloud&lt;BR /&gt;&lt;BR /&gt;I received all events send by k8s cluster but not all field from events are getting extracted in json.&amp;nbsp;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;Current Output&lt;/P&gt;&lt;PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A class="" title="" href="https://prd-p-ubfrd.splunkcloud.com/en-US/app/search/search?earliest=-2m%40m&amp;amp;latest=now&amp;amp;q=search%20index%3D%22main%22&amp;amp;display.page.search.mode=fast&amp;amp;dispatch.sample_ratio=1&amp;amp;workload_pool=standard_perf&amp;amp;display.general.type=events&amp;amp;sid=1688059863.37331#" target="_blank" rel="noopener"&gt;[-]&lt;/A&gt;
  action: modify
  containerid: 278e7bddd8b50ad885077
  count: 1
  host: example.com
  pid: 125
  time: 1456789023
  timestamp: 14567890234356
  metrics: {"metrics":{\"name1\":{\"m1\":\"downsample\",\"m2\":\"sum\"},\"name2\":{\"Headers\":{\"Selector\":{\"m1\":\"downsample\",\"m2\":\"sum\"}}}"}
  uid: 0
  user: 0
}&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Looking for convert all data in&amp;nbsp;JSON key value format as shown in expected output.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Expected Output&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{ [-]
  action: modify
  containerid: 278e7bddd8b50ad885077
  count: 1
  host: example.com
  pid: 125
  time: 1456789023
  timestamp: 14567890234356
  metrics: {[-]
     metrics:{ [-]
         name1:{ [-]
           m1: downsample
           m2: sum
         }
         name2:{ [-]
           Headers :{ [-]
             Selector :{ [-]
               m1: downsample
               m2: sum
             }
           }
         }
     }
  }
  uid: 0
  user: 0
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;SPAN&gt; How I need to configure Splunk Heavy Forwarder to extract&amp;nbsp;&amp;nbsp;multivalued&amp;nbsp;nested json ?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2023 18:09:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-heavy-forwarder-to-extract-multivalue-nested/m-p/648697#M110261</guid>
      <dc:creator>prashant5847</dc:creator>
      <dc:date>2023-06-29T18:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure heavy forwarder to extract multivalue nested json ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-heavy-forwarder-to-extract-multivalue-nested/m-p/649048#M110298</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/258235"&gt;@prashant5847&lt;/a&gt;&amp;nbsp;, Splunk is good at auto extracting the JSON event if it is well formatted.&lt;/P&gt;&lt;P&gt;Did you search it on Search head and saw the fields not being extracted correctly? Choose search mode - Smart/Verbose.&lt;/P&gt;&lt;P&gt;If you still can not find it, you don't need to extract it on Heavy forwarder. Search head will do the extractions for you.&lt;BR /&gt;Either you could use spath command - Example&amp;nbsp;&amp;nbsp;&lt;EM&gt;&amp;lt;your search return json event&amp;gt; | spath&lt;/EM&gt;&amp;nbsp; - This is inline search.&lt;BR /&gt;&lt;BR /&gt;Or update source type settings (props.conf) on search head to include following config-&lt;BR /&gt;&lt;BR /&gt;[&amp;lt;sourcetype-name-of-json-events&amp;gt;]&lt;BR /&gt;AUTO_KV_JSON = true&lt;BR /&gt;KV_MODE = json&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;------------------------------&lt;/P&gt;&lt;P&gt;Srikanth Yarlagadda.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2023 23:00:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-heavy-forwarder-to-extract-multivalue-nested/m-p/649048#M110298</guid>
      <dc:creator>venkatasri</dc:creator>
      <dc:date>2023-07-03T23:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure heavy forwarder to extract multivalue nested json ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-heavy-forwarder-to-extract-multivalue-nested/m-p/650119#M110481</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/163730"&gt;@venkatasri&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you for your suggestion. Yes, after formatting data in proper JSON format, it extracted successfully.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Further, we would like to move 'm1:&amp;nbsp; downsample' key value pair which is in Selector in same JSON message header part below host and above pid. Is this possible from splunk heavy forwarder ? If yes, what configuration changes I need to apply on the message ?&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;Prashant&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2023 08:46:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-heavy-forwarder-to-extract-multivalue-nested/m-p/650119#M110481</guid>
      <dc:creator>prashant5847</dc:creator>
      <dc:date>2023-07-12T08:46:32Z</dc:date>
    </item>
  </channel>
</rss>

