<?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 Help Breaking JSON into multiple events using props.conf in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Help-Breaking-JSON-into-multiple-events-using-props-conf/m-p/595542#M104017</link>
    <description>&lt;P&gt;Hey everyone.&lt;/P&gt;&lt;P&gt;Need some help breaking a json event that is ingested in the current nested json format:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;[
{
    "title": "Bad Stuff",
    "count": 2,
    "matches": [
        {
            "EventID": 13,
            "EventRecordID": 19700,
            "User": "NT AUTHORITY\\SYSTEM"
        },
        {
            "EventID": 16,
            "EventRecordID": 21700,
            "User": "NT AUTHORITY\\ADMIN"
        }
    ]
},
{
    "title": "Next Bad Stuff",
    "count": 2,
    "matches": [
        {
            "EventID": 14,
            "EventRecordID": 19700,
            "User": "NT AUTHORITY\\SYSTEM"
        },
        {
            "EventID": 17,
            "EventRecordID": 21700,
            "User": "NT AUTHORITY\\ADMIN"
        }
    ]
}
]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would like to break it into seperate events like this:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
    "title": "Bad Stuff",
    "count": 2,
    "EventID": 13,
    "EventRecordID": 19700,
    "User": "NT AUTHORITY\\SYSTEM"

}

{
    "title": "Bad Stuff",
    "count": 2,
    "EventID": 16,
    "EventRecordID": 21700,
    "User": "NT AUTHORITY\\ADMIN"

}

{
    "title": "Next Bad Stuff",
    "count": 2,
    "EventID": 14,
    "EventRecordID": 19700,
    "User": "NT AUTHORITY\\SYSTEM"

}

{
    "title": "Next Bad Stuff",
    "count": 2,
    "EventID": 17,
    "EventRecordID": 21700,
    "User": "NT AUTHORITY\\ADMIN"

}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What would I need in my props.conf and transforms.conf to achieve this ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advanced splunk community !&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;</description>
    <pubDate>Wed, 27 Apr 2022 09:16:56 GMT</pubDate>
    <dc:creator>_splunkker</dc:creator>
    <dc:date>2022-04-27T09:16:56Z</dc:date>
    <item>
      <title>Help Breaking JSON into multiple events using props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-Breaking-JSON-into-multiple-events-using-props-conf/m-p/595542#M104017</link>
      <description>&lt;P&gt;Hey everyone.&lt;/P&gt;&lt;P&gt;Need some help breaking a json event that is ingested in the current nested json format:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;[
{
    "title": "Bad Stuff",
    "count": 2,
    "matches": [
        {
            "EventID": 13,
            "EventRecordID": 19700,
            "User": "NT AUTHORITY\\SYSTEM"
        },
        {
            "EventID": 16,
            "EventRecordID": 21700,
            "User": "NT AUTHORITY\\ADMIN"
        }
    ]
},
{
    "title": "Next Bad Stuff",
    "count": 2,
    "matches": [
        {
            "EventID": 14,
            "EventRecordID": 19700,
            "User": "NT AUTHORITY\\SYSTEM"
        },
        {
            "EventID": 17,
            "EventRecordID": 21700,
            "User": "NT AUTHORITY\\ADMIN"
        }
    ]
}
]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would like to break it into seperate events like this:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
    "title": "Bad Stuff",
    "count": 2,
    "EventID": 13,
    "EventRecordID": 19700,
    "User": "NT AUTHORITY\\SYSTEM"

}

{
    "title": "Bad Stuff",
    "count": 2,
    "EventID": 16,
    "EventRecordID": 21700,
    "User": "NT AUTHORITY\\ADMIN"

}

{
    "title": "Next Bad Stuff",
    "count": 2,
    "EventID": 14,
    "EventRecordID": 19700,
    "User": "NT AUTHORITY\\SYSTEM"

}

{
    "title": "Next Bad Stuff",
    "count": 2,
    "EventID": 17,
    "EventRecordID": 21700,
    "User": "NT AUTHORITY\\ADMIN"

}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What would I need in my props.conf and transforms.conf to achieve this ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advanced splunk community !&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 09:16:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-Breaking-JSON-into-multiple-events-using-props-conf/m-p/595542#M104017</guid>
      <dc:creator>_splunkker</dc:creator>
      <dc:date>2022-04-27T09:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: Help Breaking JSON into multiple events using props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-Breaking-JSON-into-multiple-events-using-props-conf/m-p/595569#M104023</link>
      <description>&lt;P&gt;Quick answer is you can't.&lt;/P&gt;&lt;P&gt;Long answer is - Splunk can do some form of json parsing and manipulation and maybe you could use some fancy ingest-time evals to get the field values from the event but there would be not really enough "structural" information for splunk to recreate the events completely differently.&lt;/P&gt;&lt;P&gt;If you really need to do that much of json manipulation, do it before ingesting it into splunk be means of external script (or scripted/modular input).&lt;/P&gt;&lt;P&gt;Especially if you want to break a single event into multiple ones. Splunk processes one event at a time so there's really no reasonable way to split events in the middle of ingestion process (after it has already been split into events).&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 12:15:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-Breaking-JSON-into-multiple-events-using-props-conf/m-p/595569#M104023</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-04-27T12:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Help Breaking JSON into multiple events using props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-Breaking-JSON-into-multiple-events-using-props-conf/m-p/595577#M104024</link>
      <description>&lt;P&gt;Response to myself - I can think of one way to split an event after it already passed the event breaking stage.&lt;/P&gt;&lt;P&gt;One would have to craft a new event which then would have to be rerouted to a syslog output onto an input on the same indexer/forwarder wher it would effectively get broken into events again.&lt;/P&gt;&lt;P&gt;But it's a very very very ugly solution and no person in their sane mind should ever try do to so!&lt;/P&gt;&lt;P&gt;I'm just writing about it as a proof of concept but it's definitely not useable for production use.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 13:08:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-Breaking-JSON-into-multiple-events-using-props-conf/m-p/595577#M104024</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-04-27T13:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: Help Breaking JSON into multiple events using props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-Breaking-JSON-into-multiple-events-using-props-conf/m-p/595714#M104052</link>
      <description>&lt;P&gt;Thanks heaps! I thought as much but better to ask just in case there was some crafty way to do it.&lt;BR /&gt;Appreciate your help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 05:12:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-Breaking-JSON-into-multiple-events-using-props-conf/m-p/595714#M104052</guid>
      <dc:creator>_splunkker</dc:creator>
      <dc:date>2022-04-28T05:12:38Z</dc:date>
    </item>
  </channel>
</rss>

