<?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: Lines break when indexing JSON data using props.conf attributes in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Lines-break-when-indexing-JSON-data-using-props-conf-attributes/m-p/374667#M67882</link>
    <description>&lt;P&gt;I tried with both SHOULD_LINEMERGE = true and false, but same results.&lt;/P&gt;

&lt;P&gt;I can write BREAK_ONLY_BEFORE = ^{ or (^){       - but JSON is recognized format by Splunk and I should not be writing other stuff like normal logs.&lt;/P&gt;

&lt;P&gt;In my data there are multiple fields with time stamp. &lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 15:28:46 GMT</pubDate>
    <dc:creator>anantdeshpande</dc:creator>
    <dc:date>2020-09-29T15:28:46Z</dc:date>
    <item>
      <title>Lines break when indexing JSON data using props.conf attributes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Lines-break-when-indexing-JSON-data-using-props-conf-attributes/m-p/374665#M67880</link>
      <description>&lt;P&gt;Hi team,&lt;/P&gt;

&lt;P&gt;I am not able to index below JSON data in Splunk 6.2 with below props.conf attributes. Its breaking at every line and treating as separate event with no field extraction. When I add the same file from Search head using add data option and selects _json as source type, the fields are correctly extracted. But do not work when mention same attributes and customized sourcetype name in props.  Please suggest. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Data:
{
  "messageId" : "VIPJAPAN40001JCOMPLETE2017220818015450",
  "messageType" : "EVENT",
  "sendingAppId" : "P1",
  "sendTimeStamp" : "2017-22-08T17:09:27.526-05:00",
}

Props:
[APP1_INOUT_App2]
INDEXED_EXTRACTIONS = json
KV_MODE = none
NO_BINARY_CHECK = true
SHOULD_LINEMERGE = false
category = Structured
disabled = false
DATETIME_CONFIG = CURRENT
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 22 Aug 2017 06:24:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Lines-break-when-indexing-JSON-data-using-props-conf-attributes/m-p/374665#M67880</guid>
      <dc:creator>anantdeshpande</dc:creator>
      <dc:date>2017-08-22T06:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Lines break when indexing JSON data using props.conf attributes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Lines-break-when-indexing-JSON-data-using-props-conf-attributes/m-p/374666#M67881</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/184933"&gt;@anantdeshpande&lt;/a&gt;, Can you try with the following? &lt;/P&gt;

&lt;P&gt;SHOULD_LINEMERGE = true&lt;BR /&gt;
Also if you know event break pattern like start or end you should LINE_BREAKER, BREAK_ONLY_BEFORE, MUST_BREAK_AFTER etc. to identify events correctly. Refer to documentation: &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Data/Configureeventlinebreaking" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Data/Configureeventlinebreaking&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Where is the field for timestamp in your data? Can you please one complete event as sample (or few)?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:24:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Lines-break-when-indexing-JSON-data-using-props-conf-attributes/m-p/374666#M67881</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-09-29T15:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Lines break when indexing JSON data using props.conf attributes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Lines-break-when-indexing-JSON-data-using-props-conf-attributes/m-p/374667#M67882</link>
      <description>&lt;P&gt;I tried with both SHOULD_LINEMERGE = true and false, but same results.&lt;/P&gt;

&lt;P&gt;I can write BREAK_ONLY_BEFORE = ^{ or (^){       - but JSON is recognized format by Splunk and I should not be writing other stuff like normal logs.&lt;/P&gt;

&lt;P&gt;In my data there are multiple fields with time stamp. &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:28:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Lines-break-when-indexing-JSON-data-using-props-conf-attributes/m-p/374667#M67882</guid>
      <dc:creator>anantdeshpande</dc:creator>
      <dc:date>2020-09-29T15:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: Lines break when indexing JSON data using props.conf attributes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Lines-break-when-indexing-JSON-data-using-props-conf-attributes/m-p/374668#M67883</link>
      <description>&lt;P&gt;Try the below config,  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[APP1_INOUT_App2]
DATETIME_CONFIG=CURRENT
SHOULD_LINEMERGE=true
NO_BINARY_CHECK=true
CHARSET=UTF-8
INDEXED_EXTRACTIONS=json
KV_MODE=none
pulldown_type=true
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 22 Aug 2017 21:37:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Lines-break-when-indexing-JSON-data-using-props-conf-attributes/m-p/374668#M67883</guid>
      <dc:creator>vasanthmss</dc:creator>
      <dc:date>2017-08-22T21:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Lines break when indexing JSON data using props.conf attributes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Lines-break-when-indexing-JSON-data-using-props-conf-attributes/m-p/374669#M67884</link>
      <description>&lt;P&gt;This works perfect for json data, at least for me:&lt;/P&gt;

&lt;P&gt;[sourcetype]&lt;BR /&gt;
INDEXED_EXTRACTIONS=json&lt;BR /&gt;
JSON_TRIM_BRACES_IN_ARRAY_NAMES=true&lt;BR /&gt;
CHARSET = AUTO&lt;BR /&gt;
MAX_DIFF_SECS_AGO = 604800&lt;BR /&gt;
MAX_EVENTS = 10000&lt;BR /&gt;
NO_BINARY_CHECK = 1&lt;BR /&gt;
TRUNCATE = 0&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:53:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Lines-break-when-indexing-JSON-data-using-props-conf-attributes/m-p/374669#M67884</guid>
      <dc:creator>rafiqrehman</dc:creator>
      <dc:date>2020-09-30T01:53:47Z</dc:date>
    </item>
  </channel>
</rss>

