<?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 breaks not working - sometimes in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/JSON-event-breaks-not-working-sometimes/m-p/363813#M66269</link>
    <description>&lt;P&gt;I will need to schedule the restart of splunkd. I will let you know how it goes!&lt;/P&gt;</description>
    <pubDate>Fri, 05 Jan 2018 19:30:37 GMT</pubDate>
    <dc:creator>Branden</dc:creator>
    <dc:date>2018-01-05T19:30:37Z</dc:date>
    <item>
      <title>JSON event breaks not working - sometimes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JSON-event-breaks-not-working-sometimes/m-p/363808#M66264</link>
      <description>&lt;P&gt;I have a log file of properly formatted JSON events, but the event break is not working properly. Sometimes it separates the JSON into separate events, sometimes it does not. There doesn't seem to be any rhyme or reason to this. &lt;/P&gt;

&lt;P&gt;I tried the solution here: &lt;A href="https://answers.splunk.com/answers/80741/event-break-json.html"&gt;https://answers.splunk.com/answers/80741/event-break-json.html&lt;/A&gt; but it did not work. I am unable to restart Splunk at this time, however, but my understanding is that I shouldn't need to. (Please correct me if I'm wrong.)&lt;/P&gt;

&lt;P&gt;Here's my props.conf entry:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[s-web]
KV_MODE = json
LINE_BREAKER = "(^){"
NO_BINARY_CHECK = 1
TRUNCATE = 0
SHOULD_LINEMERGE = false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here's a sample event:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{"pid":17156,"hostname":"sub.hostname.com","name":"s-undefined","level":30,"time":1515143225539,"remoteAddr":"::ffff:99.99.99.99","remoteAddrs":[],"method":"GET","url":"/","sessionId":"abcd2b32-00e8-4e0b-97f6-23abcdef3233e","v":1}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Am I missing something here? &lt;/P&gt;

&lt;P&gt;Thank you in advance for your assistance!&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2018 16:13:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JSON-event-breaks-not-working-sometimes/m-p/363808#M66264</guid>
      <dc:creator>Branden</dc:creator>
      <dc:date>2018-01-05T16:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: JSON event breaks not working - sometimes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JSON-event-breaks-not-working-sometimes/m-p/363809#M66265</link>
      <description>&lt;P&gt;Try with this (keep the rest of the settings)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; LINE_BREAKER = ([\r\n]+)(?=\{\s*\"pid\")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 05 Jan 2018 16:18:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JSON-event-breaks-not-working-sometimes/m-p/363809#M66265</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-01-05T16:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: JSON event breaks not working - sometimes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JSON-event-breaks-not-working-sometimes/m-p/363810#M66266</link>
      <description>&lt;P&gt;Unfortunately, that did not help. &lt;BR /&gt;
Is it possible I simply need to restart Splunk after making the props.conf change? &lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2018 16:22:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JSON-event-breaks-not-working-sometimes/m-p/363810#M66266</guid>
      <dc:creator>Branden</dc:creator>
      <dc:date>2018-01-05T16:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: JSON event breaks not working - sometimes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JSON-event-breaks-not-working-sometimes/m-p/363811#M66267</link>
      <description>&lt;P&gt;Yes.. you do need a restart for that change to take effect.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2018 16:29:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JSON-event-breaks-not-working-sometimes/m-p/363811#M66267</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-01-05T16:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: JSON event breaks not working - sometimes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JSON-event-breaks-not-working-sometimes/m-p/363812#M66268</link>
      <description>&lt;P&gt;hey @Branden&lt;/P&gt;

&lt;P&gt;If you just care about breaking the event correctly then  you could use the following&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[s-web]
BREAK_ONLY_BEFORE = \{\"pid\"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and thereafter restart &lt;CODE&gt;splunkd&lt;/CODE&gt;&lt;BR /&gt;
Let me know if this helps you!&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2018 16:42:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JSON-event-breaks-not-working-sometimes/m-p/363812#M66268</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-01-05T16:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: JSON event breaks not working - sometimes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JSON-event-breaks-not-working-sometimes/m-p/363813#M66269</link>
      <description>&lt;P&gt;I will need to schedule the restart of splunkd. I will let you know how it goes!&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2018 19:30:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JSON-event-breaks-not-working-sometimes/m-p/363813#M66269</guid>
      <dc:creator>Branden</dc:creator>
      <dc:date>2018-01-05T19:30:37Z</dc:date>
    </item>
  </channel>
</rss>

