<?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: How to set the BREAK_ONLY_BEFORE? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-set-the-BREAK-ONLY-BEFORE/m-p/592583#M206257</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244607"&gt;@neha22&lt;/a&gt;&amp;nbsp;- I wouldn't suggest SHOULD_LINEMERGE=true as it is not performance effective. Try the below configuration with LINE_ BREAKER.&lt;/P&gt;&lt;P&gt;Just FYI, this will only apply to new events coming into Splunk, not to existing events.&lt;/P&gt;&lt;P&gt;Put this configuration on forwarders and indexers level.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LINE_BREAKER = ([\n\r]+)\[\d{4}-\d{2}-\d{2}\s+\d{2}:\d{2}:\d{2},\d+\]\s+
SHOULD_LINEMERGE = false
TIME_PREFIX = ^[
TIME_FORMAT = %Y-%m-%d %H:%M:%S,%3N
MAX_TIMESTAMP_LOOKAHEAD = 25&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps!! Consider upvoting if it does!!!&lt;/P&gt;</description>
    <pubDate>Wed, 06 Apr 2022 06:37:05 GMT</pubDate>
    <dc:creator>VatsalJagani</dc:creator>
    <dc:date>2022-04-06T06:37:05Z</dc:date>
    <item>
      <title>How to set the BREAK_ONLY_BEFORE?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-set-the-BREAK-ONLY-BEFORE/m-p/592446#M206202</link>
      <description>&lt;DIV class=""&gt;
&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;P&gt;I am not sure of how to set the BREAK_ONLY_BEFORE I have tried the below setting.. all my logs are of log4j format and starts at [2022-04-05 11:18:23,839] format&lt;/P&gt;
&lt;PRE&gt;BREAK_ONLY_BEFORE: date &lt;/PRE&gt;
&lt;P&gt;My logs are&amp;nbsp; which are send to splunk through fluentd in as different events:&lt;/P&gt;
&lt;PRE&gt;[2022-04-05 11:18:23,839] WARN Error while loading: connectors-versions.properties (com.amadeus.scp.kafka.connect.utils.Version)
java.lang.NullPointerException
    at java.util.Properties$LineReader.readLine(Properties.java:434)
    at java.util.Properties.load0(Properties.java:353)
    at java.util.Properties.load(Properties.java:341)
    at com.amadeus.scp.kafka.connect.utils.Version.&amp;lt;clinit&amp;gt;(Version.java:47)
    at com.amadeus.scp.kafka.connect.connectors.kafka.source.router.K2KRouterSourceConnector.version(K2KRouterSourceConnector.java:62)
    at org.apache.kafka.connect.runtime.isolation.DelegatingClassLoader.versionFor(DelegatingClassLoader.java:380)
    at org.apache.kafka.connect.runtime.isolation.DelegatingClassLoader.versionFor(DelegatingClassLoader.java:385)
    at org.apache.kafka.connect.runtime.isolation.DelegatingClassLoader.getPluginDesc(DelegatingClassLoader.java:355)
    at org.apache.kafka.connect.runtime.isolation.DelegatingClassLoader.scanPluginPath(DelegatingClassLoader.java:328)
    at org.apache.kafka.connect.runtime.isolation.DelegatingClassLoader.scanUrlsAndAddPlugins(DelegatingClassLoader.java:261)
    at org.apache.kafka.connect.runtime.isolation.DelegatingClassLoader.registerPlugin(DelegatingClassLoader.java:253)
    at org.apache.kafka.connect.runtime.isolation.DelegatingClassLoader.initPluginLoader(DelegatingClassLoader.java:222)
    at org.apache.kafka.connect.runtime.isolation.DelegatingClassLoader.initLoaders(DelegatingClassLoader.java:199)
    at org.apache.kafka.connect.runtime.isolation.Plugins.&amp;lt;init&amp;gt;(Plugins.java:60)
    at org.apache.kafka.connect.cli.ConnectDistributed.startConnect(ConnectDistributed.java:91)
    at org.apache.kafka.connect.cli.ConnectDistributed.main(ConnectDistributed.java:78)&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 05 Apr 2022 16:42:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-set-the-BREAK-ONLY-BEFORE/m-p/592446#M206202</guid>
      <dc:creator>neha22</dc:creator>
      <dc:date>2022-04-05T16:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: Handling multiline formats in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-set-the-BREAK-ONLY-BEFORE/m-p/592447#M206203</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244607"&gt;@neha22&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I'd define the Timestamp format and position and I'd use it for event breaking,something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[your_sourcetype]
TIME_PREFIX = ^\[
TIME_FORMAT = %Y-%m-%d %H:%M:%S,%3N
SHOULD_LINEMERGE = True&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 14:10:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-set-the-BREAK-ONLY-BEFORE/m-p/592447#M206203</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-04-05T14:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: Handling multiline formats in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-set-the-BREAK-ONLY-BEFORE/m-p/592472#M206210</link>
      <description>&lt;PRE&gt;&lt;BR /&gt;TIME_PREFIX:  "^[",&lt;BR /&gt;TIME_FORMAT: "([%Y-%m-%d %H:%M:%S,%3N]+)",&lt;/PRE&gt;&lt;P&gt;i tried as above but the logs still displayed as different events not a single one.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 15:49:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-set-the-BREAK-ONLY-BEFORE/m-p/592472#M206210</guid>
      <dc:creator>neha22</dc:creator>
      <dc:date>2022-04-05T15:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the BREAK_ONLY_BEFORE?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-set-the-BREAK-ONLY-BEFORE/m-p/592583#M206257</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244607"&gt;@neha22&lt;/a&gt;&amp;nbsp;- I wouldn't suggest SHOULD_LINEMERGE=true as it is not performance effective. Try the below configuration with LINE_ BREAKER.&lt;/P&gt;&lt;P&gt;Just FYI, this will only apply to new events coming into Splunk, not to existing events.&lt;/P&gt;&lt;P&gt;Put this configuration on forwarders and indexers level.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LINE_BREAKER = ([\n\r]+)\[\d{4}-\d{2}-\d{2}\s+\d{2}:\d{2}:\d{2},\d+\]\s+
SHOULD_LINEMERGE = false
TIME_PREFIX = ^[
TIME_FORMAT = %Y-%m-%d %H:%M:%S,%3N
MAX_TIMESTAMP_LOOKAHEAD = 25&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps!! Consider upvoting if it does!!!&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 06:37:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-set-the-BREAK-ONLY-BEFORE/m-p/592583#M206257</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2022-04-06T06:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the BREAK_ONLY_BEFORE?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-set-the-BREAK-ONLY-BEFORE/m-p/592652#M206286</link>
      <description>&lt;P&gt;I am using the HEC method&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 10:59:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-set-the-BREAK-ONLY-BEFORE/m-p/592652#M206286</guid>
      <dc:creator>neha22</dc:creator>
      <dc:date>2022-04-06T10:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the BREAK_ONLY_BEFORE?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-set-the-BREAK-ONLY-BEFORE/m-p/592664#M206291</link>
      <description>&lt;P&gt;If you are using the&amp;nbsp;&lt;STRONG&gt;HEC&lt;/STRONG&gt; endpoint (&lt;STRONG&gt;/services/collector/event&lt;/STRONG&gt; ) then Parsing (LINE_BREAKING), Merging (SHOULD_LINEMERGE, timestamp extraction) &lt;STRONG&gt;will not work&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use HEC this HEC endpoint instead -&amp;nbsp;&lt;STRONG&gt;/services/collector/raw&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reference -&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.5/Data/HECRESTendpoints" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.5/Data/HECRESTendpoints&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 12:05:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-set-the-BREAK-ONLY-BEFORE/m-p/592664#M206291</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2022-04-06T12:05:59Z</dc:date>
    </item>
  </channel>
</rss>

