<?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 Event Breaking Issues in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Json-Event-Breaking-Issues/m-p/296601#M56235</link>
    <description>&lt;P&gt;You probably need to define a LINE_BREAKER in your props.  With linemerge set to false, the default line breaker is crlf, which won't work for your events.&lt;/P&gt;

&lt;P&gt;For example, if the the details tag is the beginning of the new event, it might look something like below.  The first capture group is what splunk will split the events on, the second group is just a lookahead to ensure it is just before the details tag.  &lt;/P&gt;

&lt;P&gt;Also, if you're going to include the time prefix, might as well include it exactly as it is and the format if it's consistent...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[ss_api2]
SHOULD_LINEMERGE=false
LINE_BREAKER=([\r\n\s]*)(?=\{\s*"details":)
TIME_FORMAT=%Y-%m-%d %H:%M:%S.%4n
TIME_PREFIX="timestamp":\s*"
MAX_TIMESTAMP_LOOKAHEAD=25
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 20 Nov 2017 02:37:22 GMT</pubDate>
    <dc:creator>maciep</dc:creator>
    <dc:date>2017-11-20T02:37:22Z</dc:date>
    <item>
      <title>Json Event Breaking Issues</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Json-Event-Breaking-Issues/m-p/296600#M56234</link>
      <description>&lt;P&gt;Hi Folks,&lt;/P&gt;

&lt;P&gt;Splunk Ent V6.5.2&lt;/P&gt;

&lt;P&gt;I have a curly one here. I have a Json file ( sample below).&lt;BR /&gt;
When the file is ingested events don't always get separated. The props is on a HF.&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;

&lt;P&gt;I have the following props.conf.&lt;/P&gt;

&lt;P&gt;[ ss_api2 ]&lt;BR /&gt;
CHARSET=UTF-8&lt;BR /&gt;
NO_BINARY_CHECK=true&lt;BR /&gt;
SHOULD_LINEMERGE=false&lt;BR /&gt;
TIME_PREFIX=timestamp&lt;BR /&gt;
TRUNCATE = 500000&lt;BR /&gt;
category=custom&lt;BR /&gt;
description=Slipstream Prod/Beta api.&lt;BR /&gt;
disabled=false&lt;BR /&gt;
pulldown_type=true&lt;/P&gt;

&lt;P&gt;Json sample:&lt;/P&gt;

&lt;P&gt;{ "details": "{ \"exception\": \"Autofac.Core.Registration.ComponentNotRegisteredException: The requested service 'DigitalPlatform (DeploymentDashboard.Services.Configurations.IConfigurationsService)' has not been registered. To avoid this exception, either register a component to provide the service, check for service registration using IsRegistered(), or use the ResolveOptional() method to resolve an optional dependency.\r\n   at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable&lt;CODE&gt;1 parameters)\\r\\n   at Autofac.Features.Indexed.KeyedServiceIndex&lt;/CODE&gt;2.get_Item(TKey key)\r\n   at DeploymentDashboard.Api.Controllers.ConfigurationsController.d_&lt;EM&gt;10.MoveNext() in E:\\teamcity-agent\\work\\54de5f5aa4fe1c72\\api\\DeploymentDashboard.Api\\Controllers\\ConfigurationsController.cs:line 186\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Threading.Tasks.TaskHelpersExtensions.d&lt;/EM&gt;&lt;EM&gt;3`1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Controllers.ApiControllerActionInvoker.&lt;INVOKEACTIONASYNCCORE&gt;d&lt;/INVOKEACTIONASYNCCORE&gt;&lt;/EM&gt;&lt;EM&gt;0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.&lt;CALLONACTIONEXECUTEDASYNC&gt;d&lt;/CALLONACTIONEXECUTEDASYNC&gt;&lt;/EM&gt;&lt;EM&gt;5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Web.Http.Filters.ActionFilterAttribute.&lt;CALLONACTIONEXECUTEDASYNC&gt;d&lt;/CALLONACTIONEXECUTEDASYNC&gt;&lt;/EM&gt;&lt;EM&gt;5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.&lt;EXECUTEACTIONFILTERASYNCCORE&gt;d&lt;/EXECUTEACTIONFILTERASYNCCORE&gt;&lt;/EM&gt;&lt;EM&gt;0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Controllers.ActionFilterResult.&lt;EXECUTEASYNC&gt;d&lt;/EXECUTEASYNC&gt;&lt;/EM&gt;&lt;EM&gt;2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Controllers.ExceptionFilterResult.&lt;EXECUTEASYNC&gt;d&lt;/EXECUTEASYNC&gt;&lt;/EM&gt;&lt;EM&gt;0.MoveNext() MS_LoggedBy: System.Collections.Generic.List&lt;CODE&gt;1[System.Object]\" }", "exception": "The requested service 'DigitalPlatform (DeploymentDashboard.Services.Configurations.IConfigurationsService)' has not been registered. To avoid this exception, either register a component to provide the service, check for service registration using IsRegistered(), or use the ResolveOptional() method to resolve an optional dependency.", "message": "{\"correlationId\":\"e0d465f5-8a37-47de-94c0-ad77a8e83493\",\"method\":\"GET\",\"requestUri\":\"http:\/\/beta.slipstream.dev.XXXX:00\/services\/api\/configenvironments?apptype=DigitalPlatform\"}", "level": "ERROR", "type": "Autofac.Core.Registration.ComponentNotRegisteredException", "timestamp": "2017-11-17 16:22:56.4029" }&lt;BR /&gt;
{ "details": "{ \"exception\": \"Autofac.Core.Registration.ComponentNotRegisteredException: The requested service 'DigitalPlatform (DeploymentDashboard.Services.Configurations.IConfigurationsService)' has not been registered. To avoid this exception, either register a component to provide the service, check for service registration using IsRegistered(), or use the ResolveOptional() method to resolve an optional dependency.\\r\\n   at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable&lt;/CODE&gt;1 parameters)\r\n   at Autofac.Features.Indexed.KeyedServiceIndex`2.get_Item(TKey key)\r\n   at DeploymentDashboard.Api.Controllers.ConfigurationsController.d&lt;/EM&gt;&lt;EM&gt;3.MoveNext() in E:\\teamcity-agent\\work\\54de5f5aa4fe1c72\\api\\DeploymentDashboard.Api\\Controllers\\ConfigurationsController.cs:line 39\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Threading.Tasks.TaskHelpersExtensions.d&lt;/EM&gt;&lt;EM&gt;3`1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Controllers.ApiControllerActionInvoker.&lt;INVOKEACTIONASYNCCORE&gt;d&lt;/INVOKEACTIONASYNCCORE&gt;&lt;/EM&gt;&lt;EM&gt;0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.&lt;CALLONACTIONEXECUTEDASYNC&gt;d&lt;/CALLONACTIONEXECUTEDASYNC&gt;&lt;/EM&gt;&lt;EM&gt;5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Web.Http.Filters.ActionFilterAttribute.&lt;CALLONACTIONEXECUTEDASYNC&gt;d&lt;/CALLONACTIONEXECUTEDASYNC&gt;&lt;/EM&gt;&lt;EM&gt;5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.&lt;EXECUTEACTIONFILTERASYNCCORE&gt;d&lt;/EXECUTEACTIONFILTERASYNCCORE&gt;&lt;/EM&gt;&lt;EM&gt;0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Controllers.ActionFilterResult.&lt;EXECUTEASYNC&gt;d&lt;/EXECUTEASYNC&gt;&lt;/EM&gt;&lt;EM&gt;2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Controllers.ExceptionFilterResult.&lt;EXECUTEASYNC&gt;d&lt;/EXECUTEASYNC&gt;&lt;/EM&gt;_0.MoveNext() MS_LoggedBy: System.Collections.Generic.List`1[System.Object]\" }", "exception": "The requested service 'DigitalPlatform (DeploymentDashboard.Services.Configurations.IConfigurationsService)' has not been registered. To avoid this exception, either register a component to provide the service, check for service registration using IsRegistered(), or use the ResolveOptional() method to resolve an optional dependency.", "message": "{\"correlationId\":\"46bee1fe-04af-40f0-97ba-1a4954f87bdd\",\"method\":\"GET\",\"requestUri\":\"http:\/\/beta.slipstream.dev.XXXX:00\/services\/api\/configscopes?apptype=DigitalPlatform&amp;amp;scopetype=shared\"}", "level": "ERROR", "type": "Autofac.Core.Registration.ComponentNotRegisteredException", "timestamp": "2017-11-17 16:22:56.4149" }&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:53:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Json-Event-Breaking-Issues/m-p/296600#M56234</guid>
      <dc:creator>NickLaurent</dc:creator>
      <dc:date>2020-09-29T16:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: Json Event Breaking Issues</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Json-Event-Breaking-Issues/m-p/296601#M56235</link>
      <description>&lt;P&gt;You probably need to define a LINE_BREAKER in your props.  With linemerge set to false, the default line breaker is crlf, which won't work for your events.&lt;/P&gt;

&lt;P&gt;For example, if the the details tag is the beginning of the new event, it might look something like below.  The first capture group is what splunk will split the events on, the second group is just a lookahead to ensure it is just before the details tag.  &lt;/P&gt;

&lt;P&gt;Also, if you're going to include the time prefix, might as well include it exactly as it is and the format if it's consistent...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[ss_api2]
SHOULD_LINEMERGE=false
LINE_BREAKER=([\r\n\s]*)(?=\{\s*"details":)
TIME_FORMAT=%Y-%m-%d %H:%M:%S.%4n
TIME_PREFIX="timestamp":\s*"
MAX_TIMESTAMP_LOOKAHEAD=25
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 20 Nov 2017 02:37:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Json-Event-Breaking-Issues/m-p/296601#M56235</guid>
      <dc:creator>maciep</dc:creator>
      <dc:date>2017-11-20T02:37:22Z</dc:date>
    </item>
  </channel>
</rss>

