<?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 Updated: Help in event break for json file in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Updated-Help-in-event-break-for-json-file/m-p/569676#M101006</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Updated:&lt;BR /&gt;&lt;BR /&gt;I am trying to break events which is in nested json.&amp;nbsp;Each events start with&amp;nbsp; { "links":&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have almost got it working. Just small part left is that now after each event there is one " ,&amp;nbsp; "&amp;nbsp; and due to this event is not recognized as json event. Any idea how to remove it. Screenshot.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="agoyal_0-1633509145601.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/16295iCDD248C805CAB4BA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="agoyal_0-1633509145601.png" alt="agoyal_0-1633509145601.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Props.conf&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;95% working props.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CHARSET = UTF-8&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DATETIME_CONFIG =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;KV_MODE = json&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LINE_BREAKER = ([\r\n,]*(?:{[^[{]+\[)?){"links"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NO_BINARY_CHECK = true&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SEDCMD-removefooter = s/(\]\,).*//g&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SEDCMD-removeheader = s/\{\"data\": \[//g&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SHOULD_LINEMERGE = false&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TIME_FORMAT = %Y-%m-%dT%H:%M:%S.%3NZ&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TIME_PREFIX = "endTime": "&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TRUNCATE =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;category = Custom&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;description = JavaScript Object Notation format. For more information, visit&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://json.org/" target="_blank" rel="nofollow noopener noreferrer"&gt;http://json.org/&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;disabled = false&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pulldown_type = true&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Sample data for 3 events ( each event starts with {"links": )&amp;nbsp;&lt;/P&gt;&lt;P&gt;FYI: there is another 4th string&amp;nbsp; {"links" which is extra value which I will remove using regex. basically consider data only in [ ]. all other will be removed using regex as its unnecessary.&lt;BR /&gt;&lt;BR /&gt;{"data": [&lt;FONT color="#FF0000"&gt;{"links":&lt;/FONT&gt; {"self": {"href": "/admin/jobs/81913"}, "file-lists": {"href": "&lt;A href="https://test" target="_blank" rel="noopener"&gt;https://test&lt;/A&gt;"}, "try-logs": {"href": "&lt;A href="https://test" target="_blank" rel="noopener"&gt;https://test&lt;/A&gt;"}}, "type": "job", "id": "81913", "attributes": {"jobId": 81913, "parentJobId": 0, "activeProcessId": 19776, "startTime": "2021-10-05T08:14:29.000Z", "endTime": "2021-10-05T08:14:53.000Z", "kilobytesDataTransferred": 0}}, &lt;FONT color="#FF0000"&gt;{"links":&lt;/FONT&gt; {"self": {"href": "/admin/jobs/81912"}, "file-lists": {"href": "&lt;A href="https://test" target="_blank" rel="noopener"&gt;https://test&lt;/A&gt;"}, "try-logs": {"href": "&lt;A href="https://test" target="_blank" rel="noopener"&gt;https://test&lt;/A&gt;"}}, "type": "job", "id": "81912", "attributes": {"jobId": 81912, "parentJobId": 0,"startTime": "2021-10-05T08:14:04.000Z", "endTime": "2021-10-05T08:14:29.000Z", "jobQueueResource": "", "kilobytesDataTransferred": 0}}, &lt;FONT color="#FF0000"&gt;{"links":&lt;/FONT&gt; {"self": {"href": "/admin/jobs/81911"}, "file-lists": {"href": "&lt;A href="https://test" target="_blank" rel="noopener"&gt;https://test&lt;/A&gt;"}, "try-logs": {"href": "&lt;A href="https://test" target="_blank" rel="noopener"&gt;https://test&lt;/A&gt;"}}, "type": "job", "id": "81911", "attributes": {"jobId": 81911, "parentJobId": 0, "startTime": "2021-10-05T05:44:01.000Z", "endTime": "2021-10-05T05:44:51.000Z", "kilobytesDataTransferred": 0}}], "meta": {"pagination": {"next": 10, "pages": 42, "last": 410, "offset": 0, "limit": 10, "count": 415, "page": 0, "first": 0}}, "links": {"next": {"href": "&lt;A href="https://test" target="_blank" rel="noopener"&gt;https://test&lt;/A&gt;"}, "self": {"href": "&lt;A href="https://test" target="_blank" rel="noopener"&gt;https://test&lt;/A&gt;"}, "last": {"href": "&lt;A href="https://test" target="_blank" rel="noopener"&gt;https://test&lt;/A&gt;"}, "first": {"href": "&lt;A href="https://test" target="_blank" rel="noopener"&gt;https://test&lt;/A&gt;"}}}&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 06 Oct 2021 08:32:54 GMT</pubDate>
    <dc:creator>AKG1_old1</dc:creator>
    <dc:date>2021-10-06T08:32:54Z</dc:date>
    <item>
      <title>Updated: Help in event break for json file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Updated-Help-in-event-break-for-json-file/m-p/569676#M101006</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Updated:&lt;BR /&gt;&lt;BR /&gt;I am trying to break events which is in nested json.&amp;nbsp;Each events start with&amp;nbsp; { "links":&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have almost got it working. Just small part left is that now after each event there is one " ,&amp;nbsp; "&amp;nbsp; and due to this event is not recognized as json event. Any idea how to remove it. Screenshot.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="agoyal_0-1633509145601.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/16295iCDD248C805CAB4BA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="agoyal_0-1633509145601.png" alt="agoyal_0-1633509145601.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Props.conf&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;95% working props.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CHARSET = UTF-8&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DATETIME_CONFIG =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;KV_MODE = json&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LINE_BREAKER = ([\r\n,]*(?:{[^[{]+\[)?){"links"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NO_BINARY_CHECK = true&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SEDCMD-removefooter = s/(\]\,).*//g&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SEDCMD-removeheader = s/\{\"data\": \[//g&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SHOULD_LINEMERGE = false&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TIME_FORMAT = %Y-%m-%dT%H:%M:%S.%3NZ&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TIME_PREFIX = "endTime": "&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TRUNCATE =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;category = Custom&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;description = JavaScript Object Notation format. For more information, visit&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://json.org/" target="_blank" rel="nofollow noopener noreferrer"&gt;http://json.org/&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;disabled = false&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pulldown_type = true&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Sample data for 3 events ( each event starts with {"links": )&amp;nbsp;&lt;/P&gt;&lt;P&gt;FYI: there is another 4th string&amp;nbsp; {"links" which is extra value which I will remove using regex. basically consider data only in [ ]. all other will be removed using regex as its unnecessary.&lt;BR /&gt;&lt;BR /&gt;{"data": [&lt;FONT color="#FF0000"&gt;{"links":&lt;/FONT&gt; {"self": {"href": "/admin/jobs/81913"}, "file-lists": {"href": "&lt;A href="https://test" target="_blank" rel="noopener"&gt;https://test&lt;/A&gt;"}, "try-logs": {"href": "&lt;A href="https://test" target="_blank" rel="noopener"&gt;https://test&lt;/A&gt;"}}, "type": "job", "id": "81913", "attributes": {"jobId": 81913, "parentJobId": 0, "activeProcessId": 19776, "startTime": "2021-10-05T08:14:29.000Z", "endTime": "2021-10-05T08:14:53.000Z", "kilobytesDataTransferred": 0}}, &lt;FONT color="#FF0000"&gt;{"links":&lt;/FONT&gt; {"self": {"href": "/admin/jobs/81912"}, "file-lists": {"href": "&lt;A href="https://test" target="_blank" rel="noopener"&gt;https://test&lt;/A&gt;"}, "try-logs": {"href": "&lt;A href="https://test" target="_blank" rel="noopener"&gt;https://test&lt;/A&gt;"}}, "type": "job", "id": "81912", "attributes": {"jobId": 81912, "parentJobId": 0,"startTime": "2021-10-05T08:14:04.000Z", "endTime": "2021-10-05T08:14:29.000Z", "jobQueueResource": "", "kilobytesDataTransferred": 0}}, &lt;FONT color="#FF0000"&gt;{"links":&lt;/FONT&gt; {"self": {"href": "/admin/jobs/81911"}, "file-lists": {"href": "&lt;A href="https://test" target="_blank" rel="noopener"&gt;https://test&lt;/A&gt;"}, "try-logs": {"href": "&lt;A href="https://test" target="_blank" rel="noopener"&gt;https://test&lt;/A&gt;"}}, "type": "job", "id": "81911", "attributes": {"jobId": 81911, "parentJobId": 0, "startTime": "2021-10-05T05:44:01.000Z", "endTime": "2021-10-05T05:44:51.000Z", "kilobytesDataTransferred": 0}}], "meta": {"pagination": {"next": 10, "pages": 42, "last": 410, "offset": 0, "limit": 10, "count": 415, "page": 0, "first": 0}}, "links": {"next": {"href": "&lt;A href="https://test" target="_blank" rel="noopener"&gt;https://test&lt;/A&gt;"}, "self": {"href": "&lt;A href="https://test" target="_blank" rel="noopener"&gt;https://test&lt;/A&gt;"}, "last": {"href": "&lt;A href="https://test" target="_blank" rel="noopener"&gt;https://test&lt;/A&gt;"}, "first": {"href": "&lt;A href="https://test" target="_blank" rel="noopener"&gt;https://test&lt;/A&gt;"}}}&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 08:32:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Updated-Help-in-event-break-for-json-file/m-p/569676#M101006</guid>
      <dc:creator>AKG1_old1</dc:creator>
      <dc:date>2021-10-06T08:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: Help in event break for json file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Updated-Help-in-event-break-for-json-file/m-p/569792#M101027</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please, try the following (considering that everything before and after the &lt;STRONG&gt;[&lt;/STRONG&gt; and &lt;STRONG&gt;]&lt;/STRONG&gt; will be removed as you said):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[&amp;lt;sourcetype_name&amp;gt;]
SHOULD_LINEMERGE=false
LINE_BREAKER=(\,\s)\{\"links\"\:
TIME_FORMAT=%Y-%m-%dT%H:%M:%S.%3NZ
TIME_PREFIX=\"endTime\"\:\s\"
MAX_TIMESTAMP_LOOKAHEAD=24&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 21:07:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Updated-Help-in-event-break-for-json-file/m-p/569792#M101027</guid>
      <dc:creator>danielcj</dc:creator>
      <dc:date>2021-10-05T21:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: Help in event break for json file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Updated-Help-in-event-break-for-json-file/m-p/569840#M101030</link>
      <description>&lt;P&gt;Thanks but unfortunately it didn't work in my case. But I have almost working one. Just a small issue left.&lt;/P&gt;&lt;P&gt;After breaking events, each event has "&amp;nbsp; ,&amp;nbsp; &amp;nbsp;"&amp;nbsp; &amp;nbsp;at the end. This comma is causing that event is not recognize as json event. Any idea to fix it.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;95% working props.&lt;BR /&gt;CHARSET = UTF-8&lt;BR /&gt;DATETIME_CONFIG =&lt;BR /&gt;KV_MODE = json&lt;BR /&gt;LINE_BREAKER = ([\r\n,]*(?:{[^[{]+\[)?){"links"&lt;BR /&gt;NO_BINARY_CHECK = true&lt;BR /&gt;SEDCMD-removefooter = s/(\]\,).*//g&lt;BR /&gt;SEDCMD-removeheader = s/\{\"data\": \[//g&lt;BR /&gt;SHOULD_LINEMERGE = false&lt;BR /&gt;TIME_FORMAT = %Y-%m-%dT%H:%M:%S.%3NZ&lt;BR /&gt;TIME_PREFIX = "endTime": "&lt;BR /&gt;TRUNCATE =&lt;BR /&gt;category = Custom&lt;BR /&gt;description = JavaScript Object Notation format. For more information, visit &lt;A href="http://json.org/" target="_blank"&gt;http://json.org/&lt;/A&gt;&lt;BR /&gt;disabled = false&lt;BR /&gt;pulldown_type = true&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 08:29:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Updated-Help-in-event-break-for-json-file/m-p/569840#M101030</guid>
      <dc:creator>AKG1_old1</dc:creator>
      <dc:date>2021-10-06T08:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: Updated: Help in event break for json file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Updated-Help-in-event-break-for-json-file/m-p/569916#M101037</link>
      <description>&lt;P&gt;Got it working&amp;nbsp;&lt;BR /&gt;props.conf&lt;BR /&gt;CHARSET = UTF-8&lt;BR /&gt;DATETIME_CONFIG =&lt;BR /&gt;KV_MODE = json&lt;BR /&gt;LINE_BREAKER = ([\r\n,]*(?:{[^[{]+\[)?){.links.&lt;BR /&gt;NO_BINARY_CHECK = true&lt;BR /&gt;SHOULD_LINEMERGE = false&lt;BR /&gt;TIME_FORMAT = %Y-%m-%dT%H:%M:%S.%3NZ&lt;BR /&gt;TIME_PREFIX = .endTime.: .&lt;BR /&gt;TRUNCATE = 9999999&lt;BR /&gt;SEDCMD-replacequotes = s/'/"/g&lt;BR /&gt;SEDCMD-removecomma = s/,\s$//g&lt;BR /&gt;SEDCMD-removefooter = s/(\]\,).*//g&lt;BR /&gt;SEDCMD-removeheader = s/\{.data.: \[//g&lt;BR /&gt;category = Custom&lt;BR /&gt;description = JavaScript Object Notation format. For more information, visit &lt;A href="http://json.org/" target="_blank" rel="noopener"&gt;http://json.org/&lt;/A&gt;&lt;BR /&gt;disabled = false&lt;BR /&gt;pulldown_type = true&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 15:40:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Updated-Help-in-event-break-for-json-file/m-p/569916#M101037</guid>
      <dc:creator>AKG1_old1</dc:creator>
      <dc:date>2021-10-06T15:40:47Z</dc:date>
    </item>
  </channel>
</rss>

