<?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: json -&amp;gt; event -&amp;gt; Truncate=0 in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/json-gt-event-gt-Truncate-0/m-p/73234#M15002</link>
    <description>&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Let me try setting &lt;BR /&gt;
SHOULD_LINEMERGE = false.&lt;/P&gt;</description>
    <pubDate>Thu, 27 Sep 2012 17:43:38 GMT</pubDate>
    <dc:creator>lpolo</dc:creator>
    <dc:date>2012-09-27T17:43:38Z</dc:date>
    <item>
      <title>json -&gt; event -&gt; Truncate=0</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/json-gt-event-gt-Truncate-0/m-p/73228#M14996</link>
      <description>&lt;P&gt;I have a sourcetype that the events are in json format. Each json event could be more the 2000 lines. I have the following configuration in props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sourcetype_name]
LINE_BREAKER = ([\n]+).*query
SHOULD_LINEMERGE = true
TRUNCATE = 0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It works fine if the number of lines is less than 500. In events where the number of lines is more than ~500, the event is not indexed completed.&lt;/P&gt;

&lt;P&gt;what else can i do in order to fix this?&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
Lp&lt;/P&gt;

&lt;P&gt;what can I do to tune up this up?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2012 15:36:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/json-gt-event-gt-Truncate-0/m-p/73228#M14996</guid>
      <dc:creator>lpolo</dc:creator>
      <dc:date>2012-09-27T15:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: json -&gt; event -&gt; Truncate=0</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/json-gt-event-gt-Truncate-0/m-p/73229#M14997</link>
      <description>&lt;P&gt;And how exactly have you proven that the events are not getting indexed? If you are basing this solely off of what the event viewer is showing you, this is expected behavior. By default the number of lines per event that it's going to show you is limited to 500 lines. This is to prevent your browser from crashing due to increased memory usage. This is adjustable by editing a parameter for the events viewer module for your particular view. You can also edit the default flashtimeline view, though i recommend creating a new view solely for this particular sourcetype. &lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Developer/ModuleReference#EventsViewer"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Developer/ModuleReference#EventsViewer&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Take a look at the maxlinesconstraint parameter, but be warned that adjusting this too high, given your large events, might cause the browser to crash. I suggest revisiting how this json data is being generated and reduce its line count. &lt;/P&gt;

&lt;P&gt;So you can edit your flashtimeline.xml to read like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;module name="EventsViewer" layoutPanel="resultsAreaLeft"&amp;gt;
&amp;lt;param name="segmentation"&amp;gt;full&amp;lt;/param&amp;gt;
&amp;lt;param name=”maxLinesConstraint”&amp;gt;10000&amp;lt;/param&amp;gt;
&amp;lt;param name="reportFieldLink"&amp;gt;report_builder_format_report&amp;lt;/param&amp;gt;
&amp;lt;/module&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This has also been discussed here: &lt;A href="http://splunk-base.splunk.com/answers/559/how-do-you-tweak-splunk-to-display-an-event-that-is-more-than-500-lines-long"&gt;http://splunk-base.splunk.com/answers/559/how-do-you-tweak-splunk-to-display-an-event-that-is-more-than-500-lines-long&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2012 16:47:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/json-gt-event-gt-Truncate-0/m-p/73229#M14997</guid>
      <dc:creator>RicoSuave</dc:creator>
      <dc:date>2012-09-27T16:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: json -&gt; event -&gt; Truncate=0</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/json-gt-event-gt-Truncate-0/m-p/73230#M14998</link>
      <description>&lt;P&gt;A few things:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;P&gt;Are you sure the event is getting truncated? Note the the UI will only display up to 500 lines. I don't know of a way to increase that. but if you perform other operations, or use the API or CLI, you may have the entire event.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;I believe you should use &lt;CODE&gt;SHOULD_LINEMERGE = false&lt;/CODE&gt;. I don't know what your data looks like, but if you leave that on, events get merged based on Splunk finding a timestamp in the line. This may get you the same results (depending on your data) but I don't know, and in any case is less efficient. &lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;If you really do mean to merge lines using timestamps, then you would also want to increase MAX_EVENTS. Again, without knowing what your events look like, I can't say for certain.&lt;/P&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Thu, 27 Sep 2012 17:21:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/json-gt-event-gt-Truncate-0/m-p/73230#M14998</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2012-09-27T17:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: json -&gt; event -&gt; Truncate=0</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/json-gt-event-gt-Truncate-0/m-p/73231#M14999</link>
      <description>&lt;P&gt;1) Yes I am sure. Also, I am aware of the UI settings in order to exceed the limit of lines per event in UI.&lt;BR /&gt;
2) My regular expression should define the line breaker. LINE_BREAKER = ([\n]+).*query . Is this correct?&lt;BR /&gt;
3) Truncate=0 should override MAX_EVENTS. Is this correct? &lt;/P&gt;

&lt;P&gt;Any ideas?&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Lp&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:31:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/json-gt-event-gt-Truncate-0/m-p/73231#M14999</guid>
      <dc:creator>lpolo</dc:creator>
      <dc:date>2020-09-28T12:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: json -&gt; event -&gt; Truncate=0</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/json-gt-event-gt-Truncate-0/m-p/73232#M15000</link>
      <description>&lt;OL&gt;
&lt;LI&gt;Okay

&lt;OL&gt;
&lt;LI&gt;I have no idea. It depends what your data looks like and and how it's formatted.&lt;/LI&gt;
&lt;LI&gt;No. Both are in effect and if you are merging lines, then that matters.&lt;/LI&gt;
&lt;/OL&gt;&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Thu, 27 Sep 2012 17:40:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/json-gt-event-gt-Truncate-0/m-p/73232#M15000</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2012-09-27T17:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: json -&gt; event -&gt; Truncate=0</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/json-gt-event-gt-Truncate-0/m-p/73233#M15001</link>
      <description>&lt;P&gt;Don't know about the possible UI limits, but depending on how you set SHOULD_LINEMERGE, you'll have different options;&lt;/P&gt;

&lt;P&gt;These go together&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SHOULD_LINEMERGE = true
MAX_EVENTS
MUST_BREAK...
BREAK_ONLY...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;These also go togehter;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SHOULD_LINEMERGE = false
LINE_BREAKER
TRUNCATE
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;HR /&gt;

&lt;P&gt;UPDATE:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Admin/Propsconf"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Admin/Propsconf&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;will tell you more precisely how to set your config, but I do believe that you should have:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SHOULD_LINEMERGE=false
LINE_BREAKER = &amp;lt;regex&amp;gt;
TRUNCATE = 0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The key here is to craft the correct regex, and yours look a bit off. The regex should ideally match what comes first on the line in what you want to be a new event, e.g.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;LINE_BREAKER = ([\r\n]+)\d{4}-\d\d-\d\d\s\d\d:\d\d:\d\d.\d\d\d\s\+\d{4}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;would match (and create a break to a new event) for a newline followed by a timestamp formatted like; &lt;CODE&gt;2012-09-27 20:34:19.342 +0200&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;The newline character(s) would be stripped from the event, but not the (in this case) timestamp.&lt;/P&gt;

&lt;P&gt;Hope this helps,&lt;/P&gt;

&lt;P&gt;Kristian&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2012 17:41:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/json-gt-event-gt-Truncate-0/m-p/73233#M15001</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-09-27T17:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: json -&gt; event -&gt; Truncate=0</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/json-gt-event-gt-Truncate-0/m-p/73234#M15002</link>
      <description>&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Let me try setting &lt;BR /&gt;
SHOULD_LINEMERGE = false.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2012 17:43:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/json-gt-event-gt-Truncate-0/m-p/73234#M15002</guid>
      <dc:creator>lpolo</dc:creator>
      <dc:date>2012-09-27T17:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: json -&gt; event -&gt; Truncate=0</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/json-gt-event-gt-Truncate-0/m-p/73235#M15003</link>
      <description>&lt;P&gt;it did not work with &lt;BR /&gt;
SHOULD_LINEMERGE = false. I set it back to:&lt;/P&gt;

&lt;P&gt;[sourcetype_name]&lt;BR /&gt;
LINE_BREAKER = ([\n]+).*query&lt;BR /&gt;
SHOULD_LINEMERGE = true&lt;BR /&gt;
TRUNCATE = 0&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:31:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/json-gt-event-gt-Truncate-0/m-p/73235#M15003</guid>
      <dc:creator>lpolo</dc:creator>
      <dc:date>2020-09-28T12:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: json -&gt; event -&gt; Truncate=0</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/json-gt-event-gt-Truncate-0/m-p/73236#M15004</link>
      <description>&lt;OL&gt;
&lt;LI&gt;So have you adjusted this parameter for the eventsviewer module? Have you tried a CLI search and checked for events greater than 500 lines?&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Thu, 27 Sep 2012 18:24:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/json-gt-event-gt-Truncate-0/m-p/73236#M15004</guid>
      <dc:creator>RicoSuave</dc:creator>
      <dc:date>2012-09-27T18:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: json -&gt; event -&gt; Truncate=0</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/json-gt-event-gt-Truncate-0/m-p/73237#M15005</link>
      <description>&lt;P&gt;see update above /k&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2012 18:36:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/json-gt-event-gt-Truncate-0/m-p/73237#M15005</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-09-27T18:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: json -&gt; event -&gt; Truncate=0</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/json-gt-event-gt-Truncate-0/m-p/73238#M15006</link>
      <description>&lt;P&gt;I think that you are right. This regex looks that is sufficient:&lt;/P&gt;

&lt;P&gt;LINE_BREAKER = ([n]+).*query&lt;BR /&gt;
to detect the first line of the event:&lt;/P&gt;

&lt;P&gt;2012-09-27 19:03:24,705 &lt;QUERY id="ce5c455f-6660-44b2-968f-3fa8e08cfaa5"&gt;&lt;/QUERY&gt;&lt;/P&gt;

&lt;P&gt;but seems that is not. Tomorrow morning I will try with this regex:&lt;/P&gt;

&lt;P&gt;LINE_BREAKER = ([n]+)\d{4}-\d\d-\d\d\s\d\d:\d\d:\d\d,\d\d\d\s&amp;lt;query\sid=&lt;/P&gt;

&lt;P&gt;then, set SHOULD_LINEMERGE to false.&lt;/P&gt;

&lt;P&gt;Thanks Kristian&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2012 19:13:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/json-gt-event-gt-Truncate-0/m-p/73238#M15006</guid>
      <dc:creator>lpolo</dc:creator>
      <dc:date>2012-09-27T19:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: json -&gt; event -&gt; Truncate=0</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/json-gt-event-gt-Truncate-0/m-p/73239#M15007</link>
      <description>&lt;P&gt;Thanks Kristian,&lt;/P&gt;

&lt;P&gt;your recommendation worked.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2012 12:01:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/json-gt-event-gt-Truncate-0/m-p/73239#M15007</guid>
      <dc:creator>lpolo</dc:creator>
      <dc:date>2012-09-28T12:01:41Z</dc:date>
    </item>
  </channel>
</rss>

