<?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: Why is the event line breaking not working properly for JSON format? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-event-line-breaking-not-working-properly-for-JSON/m-p/338578#M62502</link>
    <description>&lt;P&gt;Hey, &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/172209"&gt;@mayurr98&lt;/a&gt; is right, you should save those settings in props.conf and not in transforms.conf&lt;/P&gt;

&lt;P&gt;Also, I slightly updated the time properties :&lt;/P&gt;

&lt;P&gt;[ sourcetype]&lt;BR /&gt;
CHARSET=UTF-8&lt;BR /&gt;
KV_MODE=JSON&lt;BR /&gt;
NO_BINARY_CHECK=true&lt;BR /&gt;
SHOULD_LINEMERGE=false&lt;BR /&gt;
TIME_FORMAT=%m/%d/%Y %H:%M:%S.%3N&lt;BR /&gt;
TIME_PREFIX="event_timestamp":"&lt;BR /&gt;
disabled=false&lt;BR /&gt;
pulldown_type=true&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 17:55:19 GMT</pubDate>
    <dc:creator>apoorvaaj</dc:creator>
    <dc:date>2020-09-29T17:55:19Z</dc:date>
    <item>
      <title>Why is the event line breaking not working properly for JSON format?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-event-line-breaking-not-working-properly-for-JSON/m-p/338576#M62500</link>
      <description>&lt;P&gt;I tried a few solutions but none worked for me so far:&lt;/P&gt;

&lt;H1&gt;answer-614348&lt;/H1&gt;

&lt;P&gt;I have an application that writes in some sort of json format, problem is that many events show up within the same second.&lt;BR /&gt;
I am trying to break the line without successs:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{"flow_id":"kiozeybzkmg","correlation_id":"d5589ebc-d17a-4b0e-b7f1-2e754c20e009","tenant_code":"VAULTTESTTENANT","fusion_prod_code":"VAULTTEST","event_name":"ECSDeposit","event_timestamp":"01/29/2018 10:22:41.649","duration":0.0,"request_url":"http://localsite:61018/va/contact.svc/econtacts","machine_name":"HostD002","method_name":"DT.Service.EcontractVault.HttpListener.EcontractVault.SignbindAndDepositContract","title":"Econ Vault Operations","message":"New request arrived","tran_info":{"deal_id":"835514948","functional_area":"ECONAFFIX","dealer_code":141348,"user_code":362266,"lender_id":"DTL","request_type":"Signing"},"extended_properties":{"IP":"10.133.148.159|::1"}}
{"flow_id":"sp0pn1aaari","correlation_id":"9d627546-05e3-45c5-aa08-3ec6800266f4","tenant_code":"VAULTTESTTENANT","fusion_prod_code":"VAULTTEST","event_name":"ECSDeposit","event_timestamp":"01/29/2018 10:22:41.897","duration":3106.2043000000003,"request_url":"http://localsite:61018/va/contact.svc/econtacts","machine_name":"HostD002","method_name":"","title":"","message":"Request processed successfully","tran_info":{"deal_id":"816881309","functional_area":"ECONAFFIX","dealer_code":141348,"user_code":362266,"lender_id":"DTL","dealer_id":"146387","request_type":"Signing"},"extended_properties":{"IP":"10.133.148.159|::1"}}
{"flow_id":"k302hfrxcze","correlation_id":"0be872d8-ea2d-43b1-b29b-f7908ecd664f","tenant_code":"VAULTTESTTENANT","fusion_prod_code":"VAULTTEST","event_name":"ECSRetrieve","event_timestamp":"01/29/2018 10:22:43.607","duration":0.0,"request_url":"http://localsite:61018/va/contact.svc/econtacts/1052368321/66909516/66909518/cc","machine_name":"HostD002","method_name":"DT.Service.EcontractVault.HttpListener.EcontractVault.RetrieveContract","title":"Econ Vault Operations","message":"New request arrived","tran_info":{"deal_id":"1052368321","functional_area":"ECONAFFIX","dealer_code":141348,"user_code":362266,"request_type":"CC"},"extended_properties":{"IP":"10.133.148.159|::1","TranSid":"66909516","ProfSid":"66909518"}}
{"flow_id":"2xxv2neh4f1","correlation_id":"21dcd29f-dc4f-4c6e-8b9e-993c4ce47971","tenant_code":"VAULTTESTTENANT","fusion_prod_code":"VAULTTEST","event_name":"ECSDeposit","event_timestamp":"01/29/2018 10:22:43.622","duration":0.0,"request_url":"http://localsite:61018/va/contact.svc/econtacts","machine_name":"HostD002","method_name":"DT.Service.EcontractVault.HttpListener.EcontractVault.SignbindAndDepositContract","title":"Econ Vault Operations","message":"New request arrived","tran_info":{"deal_id":"828082541","functional_area":"ECONAFFIX","dealer_code":141348,"user_code":362266,"lender_id":"DTL","request_type":"Signing"},"extended_properties":{"IP":"10.133.148.159|::1"}}
{"flow_id":"kiozeybzkmg","correlation_id":"d5589ebc-d17a-4b0e-b7f1-2e754c20e009","tenant_code":"VAULTTESTTENANT","fusion_prod_code":"VAULTTEST","event_name":"ECSDeposit","event_timestamp":"01/29/2018 10:22:44.595","duration":2947.1757000000002,"request_url":"http://localsite:61018/va/contact.svc/econtacts","machine_name":"HostD002","method_name":"","title":"","message":"Request processed successfully","tran_info":{"deal_id":"835514948","functional_area":"ECONAFFIX","dealer_code":141348,"user_code":362266,"lender_id":"DTL","dealer_id":"146387","request_type":"Signing"},"extended_properties":{"IP":"10.133.148.159|::1"}}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is what I have in my transforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; KV_MODE = json
 LINE_BREAKER = ([\r\n]+)(?=\s*\{\s*\"flow_id\")
 #TRUNCATE = 0
 SHOULD_LINEMERGE=false
 NO_BINARY_CHECK=true
 TIME_FORMAT= \"%m/%d/%Y %H:%M:%S.%3N\"
 TIME_PREFIX = \s*\"event_timestamp\"
 MAX_TIMESTAMP_LOOKAHEAD=26
 #BREAK_ONLY_BEFORE = \{\s*\"flow_id\"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Jan 2018 20:11:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-event-line-breaking-not-working-properly-for-JSON/m-p/338576#M62500</guid>
      <dc:creator>fmorar</dc:creator>
      <dc:date>2018-01-29T20:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the event line breaking not working properly for JSON format?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-event-line-breaking-not-working-properly-for-JSON/m-p/338577#M62501</link>
      <description>&lt;P&gt;hey, I ingested above data in with the following configuration and it worked for me. And you have to write this in &lt;CODE&gt;props.conf&lt;/CODE&gt; and &lt;CODE&gt;NOT transforms.conf&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[&amp;lt;sourcetype&amp;gt;]
DATETIME_CONFIG =
KV_MODE = json
MAX_TIMESTAMP_LOOKAHEAD = 26
NO_BINARY_CHECK = true
SHOULD_LINEMERGE = false
TIME_FORMAT = %m/%d/%Y %H:%M:%S.%3N
TIME_PREFIX = event_timestamp\":\"
category = Custom
pulldown_type = true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;let me know if this helps!&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2018 07:32:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-event-line-breaking-not-working-properly-for-JSON/m-p/338577#M62501</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-01-30T07:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the event line breaking not working properly for JSON format?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-event-line-breaking-not-working-properly-for-JSON/m-p/338578#M62502</link>
      <description>&lt;P&gt;Hey, &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/172209"&gt;@mayurr98&lt;/a&gt; is right, you should save those settings in props.conf and not in transforms.conf&lt;/P&gt;

&lt;P&gt;Also, I slightly updated the time properties :&lt;/P&gt;

&lt;P&gt;[ sourcetype]&lt;BR /&gt;
CHARSET=UTF-8&lt;BR /&gt;
KV_MODE=JSON&lt;BR /&gt;
NO_BINARY_CHECK=true&lt;BR /&gt;
SHOULD_LINEMERGE=false&lt;BR /&gt;
TIME_FORMAT=%m/%d/%Y %H:%M:%S.%3N&lt;BR /&gt;
TIME_PREFIX="event_timestamp":"&lt;BR /&gt;
disabled=false&lt;BR /&gt;
pulldown_type=true&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:55:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-event-line-breaking-not-working-properly-for-JSON/m-p/338578#M62502</guid>
      <dc:creator>apoorvaaj</dc:creator>
      <dc:date>2020-09-29T17:55:19Z</dc:date>
    </item>
  </channel>
</rss>

