<?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 JSON Import Into Splunk with Nested Fields in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/JSON-Import-Into-Splunk-with-Nested-Fields/m-p/411731#M72888</link>
    <description>&lt;P&gt;I'm trying to import some JSON with nested field using the "Add Data" function, but I can't quite get the regex/ parsing correct. I want to pull everything in the "source" section. &lt;/P&gt;

&lt;P&gt;The JSON events look like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{
        "_index": "INDEX",
        "_type": "EVENT TYPE",
        "_id": "EVENTID",
        "_score": #,
        "_source": {
          "resp_pkts": #,
          "type": "TYPE",
          "id_orig_p": PORT,
          "duration": DURATION,
           "proto": "PROTOCOL",
          "received_timestamp": TIMESTAMP IN EPOCH,
          "ts": LOG TIMESTAMP
        }
      },
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have the following set in the props.conf&lt;BR /&gt;
CHARSET UTF8&lt;BR /&gt;
DATETIME_CONFIG CURRENT&lt;BR /&gt;
SHOULD_LINEMERGE true&lt;BR /&gt;
NO_BINARY_CHECK true&lt;BR /&gt;
BREAK_ONLY_BEFORE "_source:{"&lt;BR /&gt;
disabled false&lt;BR /&gt;
KV_MODE json&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 19:38:27 GMT</pubDate>
    <dc:creator>cgalligan</dc:creator>
    <dc:date>2020-09-29T19:38:27Z</dc:date>
    <item>
      <title>JSON Import Into Splunk with Nested Fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JSON-Import-Into-Splunk-with-Nested-Fields/m-p/411731#M72888</link>
      <description>&lt;P&gt;I'm trying to import some JSON with nested field using the "Add Data" function, but I can't quite get the regex/ parsing correct. I want to pull everything in the "source" section. &lt;/P&gt;

&lt;P&gt;The JSON events look like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{
        "_index": "INDEX",
        "_type": "EVENT TYPE",
        "_id": "EVENTID",
        "_score": #,
        "_source": {
          "resp_pkts": #,
          "type": "TYPE",
          "id_orig_p": PORT,
          "duration": DURATION,
           "proto": "PROTOCOL",
          "received_timestamp": TIMESTAMP IN EPOCH,
          "ts": LOG TIMESTAMP
        }
      },
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have the following set in the props.conf&lt;BR /&gt;
CHARSET UTF8&lt;BR /&gt;
DATETIME_CONFIG CURRENT&lt;BR /&gt;
SHOULD_LINEMERGE true&lt;BR /&gt;
NO_BINARY_CHECK true&lt;BR /&gt;
BREAK_ONLY_BEFORE "_source:{"&lt;BR /&gt;
disabled false&lt;BR /&gt;
KV_MODE json&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:38:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JSON-Import-Into-Splunk-with-Nested-Fields/m-p/411731#M72888</guid>
      <dc:creator>cgalligan</dc:creator>
      <dc:date>2020-09-29T19:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: JSON Import Into Splunk with Nested Fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JSON-Import-Into-Splunk-with-Nested-Fields/m-p/411732#M72889</link>
      <description>&lt;P&gt;Can you post the whole json? &lt;/P&gt;</description>
      <pubDate>Mon, 11 Jun 2018 10:46:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JSON-Import-Into-Splunk-with-Nested-Fields/m-p/411732#M72889</guid>
      <dc:creator>ansif</dc:creator>
      <dc:date>2018-06-11T10:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: JSON Import Into Splunk with Nested Fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JSON-Import-Into-Splunk-with-Nested-Fields/m-p/411733#M72890</link>
      <description>&lt;P&gt;I faced the same issue. The problem is with the "_source" key in the input json. Replace it with something like "data". Then Splunk recognizes all fields.,I have the same problem. The issue is with key "_source" in the input json. Replace it with some else for example: "data". Then you see all the fields inside data subjson.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:40:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JSON-Import-Into-Splunk-with-Nested-Fields/m-p/411733#M72890</guid>
      <dc:creator>alpsholic</dc:creator>
      <dc:date>2020-09-29T22:40:52Z</dc:date>
    </item>
  </channel>
</rss>

