<?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: parsing events... in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/parsing-events/m-p/64317#M12942</link>
    <description>&lt;P&gt;Hi a212830,&lt;/P&gt;

&lt;P&gt;If you create you own source type and you use the BREAK_ONLY_BEFORE option to create a regex that will look for the two linebreaking formats:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.2/Admin/Propsconf" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.2/Admin/Propsconf&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Without knowing much more information on what you are currently working on, you could set it to something like:&lt;BR /&gt;
BREAK_ONLY_BEFORE = (^*|^date)&lt;/P&gt;

&lt;P&gt;Hope this helps, if you would like to provide some examples, I would be happy to help set up the props.conf file with you.&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;

&lt;P&gt;Vince&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 13:31:57 GMT</pubDate>
    <dc:creator>vincesesto</dc:creator>
    <dc:date>2020-09-28T13:31:57Z</dc:date>
    <item>
      <title>parsing events...</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/parsing-events/m-p/64316#M12941</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;How would I parse a file that has two linebreaking formats? The first is when the line begins and ends  with asterisks (*), and the other is when they start with a date. The asterisk appears to be multi-line, and the date appears to be single-line. &lt;/P&gt;</description>
      <pubDate>Sun, 17 Mar 2013 22:43:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/parsing-events/m-p/64316#M12941</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2013-03-17T22:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: parsing events...</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/parsing-events/m-p/64317#M12942</link>
      <description>&lt;P&gt;Hi a212830,&lt;/P&gt;

&lt;P&gt;If you create you own source type and you use the BREAK_ONLY_BEFORE option to create a regex that will look for the two linebreaking formats:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.2/Admin/Propsconf" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.2/Admin/Propsconf&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Without knowing much more information on what you are currently working on, you could set it to something like:&lt;BR /&gt;
BREAK_ONLY_BEFORE = (^*|^date)&lt;/P&gt;

&lt;P&gt;Hope this helps, if you would like to provide some examples, I would be happy to help set up the props.conf file with you.&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;

&lt;P&gt;Vince&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:31:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/parsing-events/m-p/64317#M12942</guid>
      <dc:creator>vincesesto</dc:creator>
      <dc:date>2020-09-28T13:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: parsing events...</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/parsing-events/m-p/64318#M12943</link>
      <description>&lt;P&gt;Thanks.&lt;/P&gt;

&lt;P&gt;I have lines like this:&lt;/P&gt;

&lt;P&gt;*********** blah blah blah start of this event with no date/time stamp ***&lt;BR /&gt;
stuff&lt;BR /&gt;
stuff&lt;BR /&gt;
********* blah blah blah end of this event&lt;/P&gt;

&lt;P&gt;and lines like this&lt;/P&gt;

&lt;P&gt;[10/29/12 6:40:34:438 EDT] 000001ae SystemErr     R [Fatal Error] :-1:-1: Premature end of file.&lt;/P&gt;</description>
      <pubDate>Sun, 17 Mar 2013 23:56:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/parsing-events/m-p/64318#M12943</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2013-03-17T23:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: parsing events...</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/parsing-events/m-p/64319#M12944</link>
      <description>&lt;P&gt;Hi a212830,&lt;/P&gt;

&lt;P&gt;Try something like the following for your props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;BREAK_ONLY_BEFORE=^\*\*\s+\w+|^\[
NO_BINARY_CHECK=1
SHOULD_LINEMERGE=true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The BREAK_ONLY_BEFORE is in two parts to have two separate event:&lt;BR /&gt;
 1. &lt;CODE&gt;^\*\*\s+\w+&lt;/CODE&gt;  - this is looking for a newline starting with 2 asterisk a space then a word &lt;BR /&gt;
 2. &lt;CODE&gt;|^\[&lt;/CODE&gt; - OR a square bracket at the start of a line.&lt;/P&gt;

&lt;P&gt;Of course you can make this as complicated as you like depending on your events, but from what you have shown me the regex of &lt;CODE&gt;^\*\*\s+\w+|^\[&lt;/CODE&gt; should work as an event break for your data.&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;

&lt;P&gt;Vince&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:32:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/parsing-events/m-p/64319#M12944</guid>
      <dc:creator>vincesesto</dc:creator>
      <dc:date>2020-09-28T13:32:02Z</dc:date>
    </item>
  </channel>
</rss>

