<?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: Splunk not logging the large json events properly in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-not-logging-the-large-json-events-properly/m-p/120597#M25041</link>
    <description>&lt;P&gt;Im not sure indexed extractions are what you want here... Try adding the following and test this..&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SHOULD_LINEMERGE = true
KV_MODE = json
BREAK_ONLY_BEFORE = ^\d\d\-\d\d\-\d\d
TIME_PREFIX = ^
MAX_TIMESTAMP_LOOKAHEAD = 25
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is assuming your events starts with the date and time&lt;/P&gt;</description>
    <pubDate>Fri, 22 May 2015 02:28:10 GMT</pubDate>
    <dc:creator>esix_splunk</dc:creator>
    <dc:date>2015-05-22T02:28:10Z</dc:date>
    <item>
      <title>Splunk not logging the large json events properly</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-not-logging-the-large-json-events-properly/m-p/120596#M25040</link>
      <description>&lt;P&gt;[my sourcetype]&lt;BR /&gt;
INDEXED_EXTRACTIONS = json&lt;BR /&gt;
TIME_FORMAT = %s%3N&lt;BR /&gt;
TIME_PREFIX = jenkinsTimestamp&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;
description = JavaScript Object Notation&lt;BR /&gt;
category = Structured&lt;BR /&gt;
disabled = false&lt;BR /&gt;
pulldown_type = true&lt;BR /&gt;
TRUNCATE=200000&lt;BR /&gt;
MAX_EVENTS=200000&lt;/P&gt;

&lt;P&gt;some of my events are 110,000+ characters long. I tried TRUNCATE=0 and MAX_EVENTS=0 to no effect. some of my events log from the middle and others do not log in the end. Some are logged just fine. Examples below,&lt;BR /&gt;
----not logging in the start event----&lt;BR /&gt;
5/22/15 &lt;BR /&gt;
2:08:39.000 AM  &lt;/P&gt;

&lt;H2&gt;ckground-color: #F0F8FF;} &amp;lt;/style&amp;gt;&amp;lt;h4&amp;gt;Global Patterns&amp;lt;/h4&amp;gt;&amp;lt;table&amp;gt;&amp;lt;tr &amp;gt;&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;Previous Job:&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;Started by &amp;lt;a href='/yhudson/job/searchproducts_gsm_upload_assembly/481/'&amp;gt;searchproducts_gsm_upload_assembly #481&amp;lt;/a&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;tr class=\"aliceblue\"&amp;gt;&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;Previous Job:&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;Started by &amp;lt;a href='/yhudson/job/searchproducts_gsm_fr_map_component/499/'&amp;gt;searchproducts_gsm_fr_map_component #499&amp;lt;/a&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;tr &amp;gt;&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;Build host:&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;Built on &amp;lt;a href='/yhudson/computer/rhel6-gq1-slave-03.adcd.infra/'&amp;gt;rhel6-gq1-slave-03.adcd.infra&amp;lt;/a&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;"}], "id": "2015-05-22_00-34-30", "keepLog": false, "url": "&lt;A href="http://thefactory.corp.xxx.com:9999/jenkins/view/Search_GSM/job/searchproducts_gsm_upload_deploy_int/440/" target="_blank"&gt;http://thefactory.corp.xxx.com:9999/jenkins/view/Search_GSM/job/searchproducts_gsm_upload_deploy_int/440/&lt;/A&gt;", "culprits": [{"absoluteUrl": "&lt;A href="http://thefactory.corp.xxx.com:9999/jenkins/user/by-tortuga" target="_blank"&gt;http://thefactory.corp.xxx.com:9999/jenkins/user/by-tortuga&lt;/A&gt;", "fullName": "by-tortuga"}], "result": "SUCCESS", "executor": null, "duration": 98065, "fullDisplayName": "&lt;A href="http://thefactory.corp.xxx.com:9999/jenkins/view/Search_GSM/job/searchproducts_gsm_upload_deploy_int" target="_blank"&gt;http://thefactory.corp.xxx.com:9999/jenkins/view/Search_GSM/job/searchproducts_gsm_upload_deploy_int&lt;/A&gt;", "estimatedDuration": 180575}&lt;/H2&gt;

&lt;P&gt;---------not logging in the end------&lt;BR /&gt;
5/22/15 &lt;BR /&gt;
2:08:03.000 AM  &lt;/P&gt;

&lt;H2&gt;{"building": true, "changeSet": {"items": [{"comment": "[GSM-1393] Support 'style' attribute in the GSM CardModule structure.\n", "paths": [{"editType": "edit", "file": "components/common/src/test/java/com/xxx/search/middleware/cosmos/template/CardModuleTest.java"}, {"editType": "edit", "file": "components/common/src/main/java/com/xxx/search/middleware/cosmos/template/CardModule.java"}], "author": {"absoluteUrl": "&lt;A href="http://thefactory.corp.xxx.com:9999/jenkins/user/whsu" target="_blank"&gt;http://thefactory.corp.xxx.com:9999/jenkins/user/whsu&lt;/A&gt;", "fullName": "whsu"}, "timestamp": 1432159954000, "id": "86b19401707141f58cd3d561158fee38f69f648e", "commitId": "86b19401707141f58cd3d561158fee38f69f648e", "msg": "[GSM-1393] Support 'style' attribute in the GSM CardModule structure.", "date": "2015-05-20T22:12:34+0000 -0700", "affectedPaths": ["components/common/src/main/java/com/xxx/search/middleware/cosmos/template/CardModule.java", "components/common/src/test/java/com/xxx/search/middleware/cosmos/template/CardModuleTest.java"]}, {"comment": "[GSM-1393] Support 'url' attribute in the GSM CardModule structure.\n", "paths": [{"editType": "edit", "file": "components/common/src/test/java/com/xxx/search/middleware/cosmos/template/CardModuleTest.java"}, {"editType": "edit", "file": "components/common/src/main/java/com/xxx/search/middleware/cosmos/template/CardModule.java"}], "author": {"absoluteUrl": "&lt;A href="http://thefactory.corp.xxx.com:9999/jenkins/user/whsu" target="_blank"&gt;http://thefactory.corp.xxx.com:9999/jenkins/user/whsu&lt;/A&gt;", "fullName": "whsu"}, "timestamp": 1432181780000, "id": "828dd4633fd5ecc565b1395c59586889fb2f57c9", "commitId": "828dd4633fd5ecc565b1395c59586889fb2f57c9", "msg": "[GSM-1393] Support 'url' attribute in the GSM CardModule structure.", "date": "2015-05-21T04:16:20+0000 -0700", "affectedPaths": ["components/common/src/main/java/com/xxx/search/middleware/cosmos/template/CardModule.java", "components/common/src/test/java/com/xxx/search/middleware/cosmos/template/CardModuleTest.java"]}, {"comment": "[GSM-1393] Fix url variable in CardModule.java.\n", "paths": [{"editType": "edit", "file": "components/common/src/main/java/com/xxx/search/middleware/cosmos/template/CardModule.java"}], "author": {"absoluteUrl": "&lt;A href="http://thefactory.corp.xxx.com:9999/jenkins/user/whsu" target="_blank"&gt;http://thefactory.corp.xxx.com:9999/jenkins/user/whsu&lt;/A&gt;", "fullName": "whsu"}, "timestamp": 1432182356000, "id": "a0d1e6e7d2b65d5020cc2292d2bcc2699b8c5470", "commitId": "a0d1e6&lt;/H2&gt;

&lt;P&gt;Any help is greatly appreciated&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 20:02:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-not-logging-the-large-json-events-properly/m-p/120596#M25040</guid>
      <dc:creator>hvaithia</dc:creator>
      <dc:date>2020-09-28T20:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk not logging the large json events properly</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-not-logging-the-large-json-events-properly/m-p/120597#M25041</link>
      <description>&lt;P&gt;Im not sure indexed extractions are what you want here... Try adding the following and test this..&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SHOULD_LINEMERGE = true
KV_MODE = json
BREAK_ONLY_BEFORE = ^\d\d\-\d\d\-\d\d
TIME_PREFIX = ^
MAX_TIMESTAMP_LOOKAHEAD = 25
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is assuming your events starts with the date and time&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2015 02:28:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-not-logging-the-large-json-events-properly/m-p/120597#M25041</guid>
      <dc:creator>esix_splunk</dc:creator>
      <dc:date>2015-05-22T02:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk not logging the large json events properly</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-not-logging-the-large-json-events-properly/m-p/120598#M25042</link>
      <description>&lt;H2&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/202391"&gt;@esix_splunk&lt;/a&gt;, the timestamp is not the start of the event. My event is typically starts with a """ {"building": """ like this,&lt;/H2&gt;

&lt;P&gt;{"building": false, "changeSet": {"items": [{"comment": "Revert \"set pos field can be overrided by logGroup dynamically \"\n", "paths": [{"editType": "edit", "file": "src/datamodel/ComponentData.php"    }], "author": {"absoluteUrl": "&lt;A href="http://thefactory.corp.xxx.com:9999/jenkins/user/prajakta" target="_blank"&gt;http://thefactory.corp.xxx.com:9999/jenkins/user/prajakta&lt;/A&gt;", "fullName": "prajakta"}, "timestamp": 1432177477000, "id": "5f428d3cde806ec296538023dae94ae694bca747", "com    mitId": "5f428d3cde806ec296538023dae94ae694bca747", "msg": "Revert \"set pos field can be overrided by logGroup dynamically \"", "date": "2015-05-21T03:04:37+0000 -0700", "affectedPaths": ["src/datamo    del/ComponentData.php"]}], "kind": "git"}, "builtOn": "rhel6-gq1-factory-slave-029.infra", "description": null, ...&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;And jenkinsTimestamp is the timestamp I want splunk to pick up. and hence the &lt;BR /&gt;
TIME_FORMAT = %s%3N&lt;BR /&gt;
TIME_PREFIX = jenkinsTimestamp&lt;BR /&gt;
I tried KV_MODE=json  earlier and somehow that doesn't seem to work for me. I read that KV_MODE is only for search-time extractions and not index-time. Do you have any suggestions for this?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 20:02:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-not-logging-the-large-json-events-properly/m-p/120598#M25042</guid>
      <dc:creator>hvaithia</dc:creator>
      <dc:date>2020-09-28T20:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk not logging the large json events properly</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-not-logging-the-large-json-events-properly/m-p/120599#M25043</link>
      <description>&lt;P&gt;Another weird thing that I am noticing is that, it works fine when I analyze the logs when uploading it and using the same sourcetype, but it appears to not work after I upload it and start the search. This is not the 1st time I am seeing this, it happened to me once before. Is the log analyzer in splunk 6.2 not working properly?&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2015 18:34:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-not-logging-the-large-json-events-properly/m-p/120599#M25043</guid>
      <dc:creator>hvaithia</dc:creator>
      <dc:date>2015-05-22T18:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk not logging the large json events properly</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-not-logging-the-large-json-events-properly/m-p/120600#M25044</link>
      <description>&lt;P&gt;I just tested the same sourcetype with splunk 6.1 and it works perfectly! Safe to assume that something is wrong with Splunk 6.2 indexing&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2015 21:29:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-not-logging-the-large-json-events-properly/m-p/120600#M25044</guid>
      <dc:creator>hvaithia</dc:creator>
      <dc:date>2015-05-22T21:29:06Z</dc:date>
    </item>
  </channel>
</rss>

