<?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 event break on multiple dashes? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-event-break-on-multiple-dashes/m-p/469847#M99637</link>
    <description>&lt;P&gt;Hi Mayurr, did not want to leave this question open ended, but I am still working on a solution.  From working with our teams it seems that these particular settings are being overridden by the Indexer, which I do not have direct access to.  &lt;/P&gt;</description>
    <pubDate>Tue, 10 Sep 2019 13:04:58 GMT</pubDate>
    <dc:creator>ryancmiller</dc:creator>
    <dc:date>2019-09-10T13:04:58Z</dc:date>
    <item>
      <title>How to event break on multiple dashes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-event-break-on-multiple-dashes/m-p/469836#M99626</link>
      <description>&lt;P&gt;With multi-line logs, I am trying to linebreak on an obvious linebreaker of dashes (----------------------------------------------------------).  (Note in the below examples it appears to be coming across as a whole line, but it should be like above).&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Example log:&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;ProviderId : 453af5ee-6772-55ce-39b3-0f9307a96b84&lt;BR /&gt;
EventId : 300&lt;BR /&gt;
Keywords : 4&lt;BR /&gt;
Level : Informational&lt;BR /&gt;
Message : Application information&lt;BR /&gt;
Opcode : Info&lt;BR /&gt;
Task : 65234&lt;BR /&gt;
Version : 0&lt;BR /&gt;
Payload : Generic information&lt;BR /&gt;
EventName : InfoInfo&lt;BR /&gt;
ProcessId : 6528&lt;BR /&gt;
ThreadId : 12524&lt;/P&gt;

&lt;H2&gt;Timestamp : 2019-08-30 12:32:50 PM&lt;/H2&gt;

&lt;P&gt;I've tried various regex expressions, one such as &lt;STRONG&gt;^(\s+)-+(\s+)$&lt;/STRONG&gt; to break on the line, but the results don't seem to work.  Also Splunk seems to interpret the Timestamp as the beginning of the log but it is actually the last part of the log before the linebreak.&lt;/P&gt;

&lt;P&gt;In general Splunk will display the events as (note the Timestamp is first, but it should be last):&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Example results:&lt;/STRONG&gt;&lt;/P&gt;

&lt;H2&gt;Timestamp : 2019-08-30 12:32:50 PM&lt;/H2&gt;

&lt;P&gt;ProviderId : 453af5ee-6772-55ce-39b3-0f9307a96b84&lt;BR /&gt;
EventId : 300&lt;BR /&gt;
Keywords : 4&lt;BR /&gt;
...&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 16:37:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-event-break-on-multiple-dashes/m-p/469836#M99626</guid>
      <dc:creator>ryancmiller</dc:creator>
      <dc:date>2019-08-30T16:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to event break on multiple dashes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-event-break-on-multiple-dashes/m-p/469837#M99627</link>
      <description>&lt;P&gt;try setting &lt;CODE&gt;BREAK_ONLY_BEFORE = ProviderId&lt;/CODE&gt; in your props.conf&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 17:34:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-event-break-on-multiple-dashes/m-p/469837#M99627</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2019-08-30T17:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to event break on multiple dashes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-event-break-on-multiple-dashes/m-p/469838#M99628</link>
      <description>&lt;P&gt;That seems like a good idea actually, but for some reason it is tending to bunch up a lot of events together, or still putting the timestamp at the top.  In some cases it does take out the Timestamp and includes it only as part of the Event Time itself (which is fine).  I modified the props.conf within \etc\system\local and restarted the service.  &lt;/P&gt;

&lt;P&gt;The &lt;STRONG&gt;props.conf&lt;/STRONG&gt; config looks like this:&lt;/P&gt;

&lt;P&gt;[sourceTypeName]&lt;BR /&gt;
BREAK_ONLY_BEFORE = ProviderId&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Splunk Event examples:&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;... 1 line omitted ...&lt;BR /&gt;
ProviderId : 453af5ee-6772-55ce-39b3-0f9307a96b84&lt;BR /&gt;
... 13 lines omitted ...&lt;BR /&gt;
ProviderId : 453af5ee-6772-55ce-39b3-0f9307a96b84&lt;BR /&gt;
... 13 lines omitted ...&lt;BR /&gt;
ProviderId : 453af5ee-6772-55ce-39b3-0f9307a96b84&lt;BR /&gt;
... 13 lines omitted ...&lt;BR /&gt;
ProviderId : 453af5ee-6772-55ce-39b3-0f9307a96b84&lt;BR /&gt;
... 13 lines omitted ...&lt;BR /&gt;
ProviderId : 453af5ee-6772-55ce-39b3-0f9307a96b84&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:01:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-event-break-on-multiple-dashes/m-p/469838#M99628</guid>
      <dc:creator>ryancmiller</dc:creator>
      <dc:date>2020-09-30T02:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to event break on multiple dashes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-event-break-on-multiple-dashes/m-p/469839#M99629</link>
      <description>&lt;P&gt;you have only BREAK_ONLY_BEFORE in props.conf for that stanza?&lt;/P&gt;

&lt;P&gt;could you share the entire configuration for that sourcetype?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:01:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-event-break-on-multiple-dashes/m-p/469839#M99629</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2020-09-30T02:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to event break on multiple dashes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-event-break-on-multiple-dashes/m-p/469840#M99630</link>
      <description>&lt;P&gt;Sure, here (from the Splunk UI). They are basically the default settings I believe:&lt;/P&gt;

&lt;P&gt;Name    Value&lt;BR /&gt;&lt;BR /&gt;
CHARSET &lt;STRONG&gt;AUTO&lt;/STRONG&gt;&lt;BR /&gt;
DATETIME_CONFIG &lt;STRONG&gt;[blank]&lt;/STRONG&gt;&lt;BR /&gt;
LINE_BREAKER &lt;STRONG&gt;([\r\n]+)&lt;/STRONG&gt;&lt;BR /&gt;
NO_BINARY_CHECK &lt;STRONG&gt;true&lt;/STRONG&gt;&lt;BR /&gt;
SHOULD_LINEMERGE &lt;STRONG&gt;true&lt;/STRONG&gt;&lt;BR /&gt;
category &lt;STRONG&gt;Custom&lt;/STRONG&gt;&lt;BR /&gt;
disabled &lt;STRONG&gt;false&lt;/STRONG&gt;&lt;BR /&gt;
pulldown_type &lt;STRONG&gt;true&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:01:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-event-break-on-multiple-dashes/m-p/469840#M99630</guid>
      <dc:creator>ryancmiller</dc:creator>
      <dc:date>2020-09-30T02:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to event break on multiple dashes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-event-break-on-multiple-dashes/m-p/469841#M99631</link>
      <description>&lt;P&gt;And yes, that is the only line for the stanza.  Created the props.conf file specifically for it.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 18:17:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-event-break-on-multiple-dashes/m-p/469841#M99631</guid>
      <dc:creator>ryancmiller</dc:creator>
      <dc:date>2019-08-30T18:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to event break on multiple dashes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-event-break-on-multiple-dashes/m-p/469842#M99632</link>
      <description>&lt;P&gt;why there is &lt;CODE&gt;LINE_BREAKER&lt;/CODE&gt;? when you have break_only_before&lt;BR /&gt;
comment all that and try this new :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    [your_sourcetype]
    CHARSET =
    SHOULD_LINEMERGE = true
    NO_BINARY_CHECK = true
    BREAK_ONLY_BEFORE = ProviderId
    TIME_FORMAT = %Y-%m-%d %I:%M:%S %p
    TIME_PREFIX = Timestamp\s:\s
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and change it from the backend&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:01:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-event-break-on-multiple-dashes/m-p/469842#M99632</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2020-09-30T02:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to event break on multiple dashes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-event-break-on-multiple-dashes/m-p/469843#M99633</link>
      <description>&lt;P&gt;The above was taken directly from the Splunk UI, which autogenerated that LINE_BREAKER.&lt;/P&gt;

&lt;P&gt;In props.conf, it is as you've just described.&lt;/P&gt;

&lt;P&gt;Could there be any conflicts?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2019 15:28:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-event-break-on-multiple-dashes/m-p/469843#M99633</guid>
      <dc:creator>ryancmiller</dc:creator>
      <dc:date>2019-09-03T15:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to event break on multiple dashes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-event-break-on-multiple-dashes/m-p/469844#M99634</link>
      <description>&lt;P&gt;One more point to note, after the dashed line is a blank line.  The line could break on the blank line instead of the dashes.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2019 15:34:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-event-break-on-multiple-dashes/m-p/469844#M99634</guid>
      <dc:creator>ryancmiller</dc:creator>
      <dc:date>2019-09-03T15:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to event break on multiple dashes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-event-break-on-multiple-dashes/m-p/469845#M99635</link>
      <description>&lt;P&gt;Try adding MAX_TIMESTAMP_LOOKAHEAD to your props stanza:&lt;/P&gt;

&lt;P&gt;MAX_TIMESTAMP_LOOKAHEAD = 320&lt;/P&gt;

&lt;P&gt;if the content length varies, use a value appropriate for the variance:&lt;/P&gt;

&lt;P&gt;MAX_TIMESTAMP_LOOKAHEAD = 512&lt;/P&gt;

&lt;P&gt;I use multiples of 64 on x86-64 "just in case" Splunk allocates this as a separate buffer. Different architectures have different cache line sizes.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:58:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-event-break-on-multiple-dashes/m-p/469845#M99635</guid>
      <dc:creator>tscroggins</dc:creator>
      <dc:date>2020-09-30T01:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to event break on multiple dashes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-event-break-on-multiple-dashes/m-p/469846#M99636</link>
      <description>&lt;P&gt;Could I be doing something wrong with the configuration itself?  For example, if I try renaming the sourcetype, the new sourcetype doesn't take affect.  Is there an easy way to check out what attributes are being applied?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2019 18:09:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-event-break-on-multiple-dashes/m-p/469846#M99636</guid>
      <dc:creator>ryancmiller</dc:creator>
      <dc:date>2019-09-03T18:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to event break on multiple dashes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-event-break-on-multiple-dashes/m-p/469847#M99637</link>
      <description>&lt;P&gt;Hi Mayurr, did not want to leave this question open ended, but I am still working on a solution.  From working with our teams it seems that these particular settings are being overridden by the Indexer, which I do not have direct access to.  &lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 13:04:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-event-break-on-multiple-dashes/m-p/469847#M99637</guid>
      <dc:creator>ryancmiller</dc:creator>
      <dc:date>2019-09-10T13:04:58Z</dc:date>
    </item>
  </channel>
</rss>

