<?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: Split list of JSON objects into events in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Split-list-of-JSON-objects-into-events/m-p/554670#M91909</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/234998"&gt;@shakSplunk&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This configuration works for me.&amp;nbsp;Can you please try this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LINE_BREAKER = }(,){\"Timestamp\"
NO_BINARY_CHECK = true
SEDCMD-a = s/{"Root": \[//g
SEDCMD-b = s/\]}//g
category = Custom
pulldown_type = true
disabled = false
BREAK_ONLY_BEFORE_DATE = 
SHOULD_LINEMERGE = false&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Sample data:&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{"Root": [{"Timestamp": "03-06-2021 13:52:34","Region": "rcc","Hostname": "lx206","Version": "123","Environment": "E"},{"Timestamp": "03-06-2021 13:52:33","Region": "rcc","Hostname": "lx206","Version": "123","Environment": "E"},{"Timestamp": "03-06-2021 13:52:32","Region": "rcc","Hostname": "lx206","Version": "123","Environment": "S"},{"Timestamp": "03-06-2021 13:52:31","Region": "rcc","Hostname": "lx206","Version": "123","Catridge": "UPP","CatridgeType": "Product","Environment": "S"}]}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2021-06-07 at 5.03.00 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/14502iACAEE83C27ADF5EB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2021-06-07 at 5.03.00 PM.png" alt="Screenshot 2021-06-07 at 5.03.00 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; Thanks&lt;BR /&gt;KV&lt;BR /&gt;▄︻̷̿┻̿═━一&lt;BR /&gt;&lt;BR /&gt;If any of my reply helps you to solve the problem Or gain knowledge, an upvote would be appreciated.&lt;/P&gt;</description>
    <pubDate>Mon, 07 Jun 2021 11:33:21 GMT</pubDate>
    <dc:creator>kamlesh_vaghela</dc:creator>
    <dc:date>2021-06-07T11:33:21Z</dc:date>
    <item>
      <title>Split list of JSON objects into events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Split-list-of-JSON-objects-into-events/m-p/554631#M91904</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I had a previous question that got solved here:&lt;BR /&gt;&lt;A href="https://community.splunk.com/t5/Getting-Data-In/Split-a-nested-json-array-with-key-value-pairs/m-p/554294#M91857" target="_blank"&gt;https://community.splunk.com/t5/Getting-Data-In/Split-a-nested-json-array-with-key-value-pairs/m-p/554294#M91857&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;However, with a slight variation to the input json data, splunk is no longer separating out each object as an event (changed "Rows" into "Root" and "timestamp" into "Timestamp").&amp;nbsp;&lt;/P&gt;&lt;P&gt;Similar to the question above, I have the following input data (this is nicely structured, whereas in the file it is instead one long line):&lt;/P&gt;&lt;PRE&gt;{
    "Root": [
        {
            "Timestamp": "03-06-2021 13:52:34",
            "Region": "rcc",
            "Hostname": "lx206",
            "Version": "123",
            "Environment": "E"
        },
        {
            "Timestamp": "03-06-2021 13:52:33",
            "Region": "rcc",
            "Hostname": "lx206",
            "Version": "123",
            "Environment": "E"
        },
        {
            "Timestamp": "03-06-2021 13:52:32",
            "Region": "rcc",
            "Hostname": "lx206",
            "Version": "123",
            "Environment": "S"
        },
        {
            "Timestamp": "03-06-2021 13:52:31",
            "Region": "rcc",
            "Hostname": "lx206",
            "Version": "123",
            "Catridge": "UPP",
            "CatridgeType": "Product",
            "Environment": "S"
        }
    ]
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;The following props.config was used before, however no longer works with the new data:&lt;/P&gt;&lt;P&gt;CHARSET=AUTO&lt;BR /&gt;DATETIME_CONFIG=&lt;BR /&gt;LINE_BREAKER=}(,){\"timestamp\"&lt;BR /&gt;NO_BINARY_CHECK=true&lt;BR /&gt;SEDCMD-a=s/{"Rows": \[//g&lt;BR /&gt;SEDCMD-b=s/\]}//g&lt;BR /&gt;SHOULD_LINEMERGE=false&lt;BR /&gt;disabled=false&lt;BR /&gt;pulldown_type=true&lt;BR /&gt;category=Custom&lt;/P&gt;&lt;P&gt;With the new input data, I've tried modifying the config file to produce the following, however one event is produced instead of separating each object into an event:&lt;/P&gt;&lt;P&gt;CHARSET=AUTO&lt;BR /&gt;DATETIME_CONFIG=&lt;BR /&gt;LINE_BREAKER=}(,){\"Timestamp\"&lt;BR /&gt;NO_BINARY_CHECK=true&lt;BR /&gt;SEDCMD-a=s/{"Root": \[//g&lt;BR /&gt;SEDCMD-b=s/\]}//g&lt;BR /&gt;TRUNCATE=0&lt;BR /&gt;SHOULD_LINEMERGE=false&lt;BR /&gt;disabled=false&lt;BR /&gt;pulldown_type=true&lt;BR /&gt;category=Custom&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jun 2021 06:08:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Split-list-of-JSON-objects-into-events/m-p/554631#M91904</guid>
      <dc:creator>shakSplunk</dc:creator>
      <dc:date>2021-06-07T06:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: Split list of JSON objects into events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Split-list-of-JSON-objects-into-events/m-p/554670#M91909</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/234998"&gt;@shakSplunk&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This configuration works for me.&amp;nbsp;Can you please try this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LINE_BREAKER = }(,){\"Timestamp\"
NO_BINARY_CHECK = true
SEDCMD-a = s/{"Root": \[//g
SEDCMD-b = s/\]}//g
category = Custom
pulldown_type = true
disabled = false
BREAK_ONLY_BEFORE_DATE = 
SHOULD_LINEMERGE = false&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Sample data:&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{"Root": [{"Timestamp": "03-06-2021 13:52:34","Region": "rcc","Hostname": "lx206","Version": "123","Environment": "E"},{"Timestamp": "03-06-2021 13:52:33","Region": "rcc","Hostname": "lx206","Version": "123","Environment": "E"},{"Timestamp": "03-06-2021 13:52:32","Region": "rcc","Hostname": "lx206","Version": "123","Environment": "S"},{"Timestamp": "03-06-2021 13:52:31","Region": "rcc","Hostname": "lx206","Version": "123","Catridge": "UPP","CatridgeType": "Product","Environment": "S"}]}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2021-06-07 at 5.03.00 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/14502iACAEE83C27ADF5EB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2021-06-07 at 5.03.00 PM.png" alt="Screenshot 2021-06-07 at 5.03.00 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; Thanks&lt;BR /&gt;KV&lt;BR /&gt;▄︻̷̿┻̿═━一&lt;BR /&gt;&lt;BR /&gt;If any of my reply helps you to solve the problem Or gain knowledge, an upvote would be appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jun 2021 11:33:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Split-list-of-JSON-objects-into-events/m-p/554670#M91909</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2021-06-07T11:33:21Z</dc:date>
    </item>
  </channel>
</rss>

