<?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 split log file on non-standard date and special characters in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/how-to-split-log-file-on-non-standard-date-and-special/m-p/323780#M60277</link>
    <description>&lt;P&gt;First you need to setup the event parsing (line breaking, timestamp identification etc) on your indexers/heavy forwarders. If the instance monitoring this is Universal forwarders, then move the line breaking configurations to your Indexers/heavy forwarders (a restart of Splunk would e needed). &lt;/P&gt;

&lt;P&gt;Second, give this config a try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[int_error_log]
SHOULD_LINEMERGE = false
LINE_BREAKER = ([\r\n]+)(?=\[\w+\s+\w+\s+\d+\s+\d+\:\d+\:\d+\.\d+)
TIME_PREFIX = ^\[\w+\s+
TIME_FORMAT = %b %d %H:%M:%S.%N %Y
MAX_TIMESTAMP_LOOKAHEAD = 27
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 31 May 2017 16:42:41 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2017-05-31T16:42:41Z</dc:date>
    <item>
      <title>how to split log file on non-standard date and special characters</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-split-log-file-on-non-standard-date-and-special/m-p/323779#M60276</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I have a log file that has a non standard date/time and special characters and i am trying to split the lines on the forwarder, however i cannot get Splunk to read anything less than 257 lines at a time!&lt;/P&gt;

&lt;P&gt;My Log lines are as follows;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[Wed May 31 12:34:22.431862 2017] [:debug] [pid 10890] ils_util.c(615): SSS_DBG:[10890,55584809]:-  
+------------------- Start Of Request --------------------
| Id = 55584809,  SessionId = 1300,  Sid = 28716112
+---------------------------------------------------------
[Wed May 31 12:34:22.431867 2017] [:debug] [pid 10890] ils_util.c(618): SSS_DBG:[10890,55584809]:-  Start Of Request - Id = 55584809,  SessionId = 1300,  Sid = 28716112
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;my props.conf file is below&lt;/P&gt;

&lt;P&gt;[int_error_log]&lt;BR /&gt;
SHOULD_LINEMERGE = true&lt;BR /&gt;
BREAK_ONLY_BEFORE_DATE = false&lt;BR /&gt;
BREAK_ONLY_BEFORE = ^[\d{3}\s\d{3}\s\d{2}\s\d{2}:\d{2}:\d{2}.\d{6}\s\d{4}]\s&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD = 35&lt;BR /&gt;
TIME_PREFIX = ^&lt;/P&gt;

&lt;P&gt;i have tried to use LINE_BREAKER=([+||]+) in order to deal with the special characters, however this resulted in even more lines per break.&lt;/P&gt;

&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:17:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-split-log-file-on-non-standard-date-and-special/m-p/323779#M60276</guid>
      <dc:creator>ssaenger</dc:creator>
      <dc:date>2020-09-29T14:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: how to split log file on non-standard date and special characters</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-split-log-file-on-non-standard-date-and-special/m-p/323780#M60277</link>
      <description>&lt;P&gt;First you need to setup the event parsing (line breaking, timestamp identification etc) on your indexers/heavy forwarders. If the instance monitoring this is Universal forwarders, then move the line breaking configurations to your Indexers/heavy forwarders (a restart of Splunk would e needed). &lt;/P&gt;

&lt;P&gt;Second, give this config a try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[int_error_log]
SHOULD_LINEMERGE = false
LINE_BREAKER = ([\r\n]+)(?=\[\w+\s+\w+\s+\d+\s+\d+\:\d+\:\d+\.\d+)
TIME_PREFIX = ^\[\w+\s+
TIME_FORMAT = %b %d %H:%M:%S.%N %Y
MAX_TIMESTAMP_LOOKAHEAD = 27
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 31 May 2017 16:42:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-split-log-file-on-non-standard-date-and-special/m-p/323780#M60277</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-05-31T16:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: how to split log file on non-standard date and special characters</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-split-log-file-on-non-standard-date-and-special/m-p/323781#M60278</link>
      <description>&lt;P&gt;Thanks somesoni2,&lt;BR /&gt;
Worked perfectly &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; - apologies for delay in my reply have been away &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2017 15:14:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-split-log-file-on-non-standard-date-and-special/m-p/323781#M60278</guid>
      <dc:creator>ssaenger</dc:creator>
      <dc:date>2017-06-14T15:14:35Z</dc:date>
    </item>
  </channel>
</rss>

