<?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: Line breaking not working with rolling log files in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Line-breaking-not-working-with-rolling-log-files/m-p/396546#M70667</link>
    <description>&lt;P&gt;Any expert advice splunkers?&lt;/P&gt;</description>
    <pubDate>Wed, 03 Apr 2019 12:01:39 GMT</pubDate>
    <dc:creator>bishtk</dc:creator>
    <dc:date>2019-04-03T12:01:39Z</dc:date>
    <item>
      <title>Line breaking not working with rolling log files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Line-breaking-not-working-with-rolling-log-files/m-p/396545#M70666</link>
      <description>&lt;P&gt;Log file name : run_xxxxxxx_XXX_XXXXXX_XXX.log.04020830&lt;/P&gt;

&lt;P&gt;This is the log file name and its suffix always ends with current date. So it gets rolled everyday into a new file with new date.&lt;BR /&gt;
For this I have added crcSalt in inputs.conf file.&lt;/P&gt;

&lt;P&gt;Pasted below is the log event format. Where "beginning" line is the start of event and "ending" line is the end of event. This is one complete event&lt;BR /&gt;
23:30:05 =================/XXX/XXXXXX/run_XXX.ksh beginning=================&lt;BR /&gt;
**&lt;BR /&gt;
23:30:15 =================/XXX/XXXXXX/run_XXX.ksh ending====================&lt;/P&gt;

&lt;P&gt;For this I have applied below parsing under props.conf of heavyforwarder&lt;BR /&gt;
[source::/XXX/XXXXXX/XXX/XXX/&lt;EM&gt;.log.&lt;/EM&gt;]&lt;BR /&gt;
SHOULD_LINEMERGE = true&lt;BR /&gt;
BREAK_ONLY_BEFORE_DATE = false&lt;BR /&gt;
BREAK_ONLY_BEFORE = ^\d{1,2}:\d{1,2}:\d{1,3}\s.*\sbeginning&lt;/P&gt;

&lt;P&gt;This parsing is working when I tested the same on local machine or test environment with single log file. But in production, since there it creates a rolling log file everyday, this line breaking is not working.&lt;/P&gt;

&lt;P&gt;Please suggest?&lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:00:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Line-breaking-not-working-with-rolling-log-files/m-p/396545#M70666</guid>
      <dc:creator>bishtk</dc:creator>
      <dc:date>2020-09-30T00:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: Line breaking not working with rolling log files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Line-breaking-not-working-with-rolling-log-files/m-p/396546#M70667</link>
      <description>&lt;P&gt;Any expert advice splunkers?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2019 12:01:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Line-breaking-not-working-with-rolling-log-files/m-p/396546#M70667</guid>
      <dc:creator>bishtk</dc:creator>
      <dc:date>2019-04-03T12:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: Line breaking not working with rolling log files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Line-breaking-not-working-with-rolling-log-files/m-p/396547#M70668</link>
      <description>&lt;P&gt;@kundanbisht &lt;/P&gt;

&lt;P&gt;Have you tried with this? I have just added *.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::/XXX/XXXXXX/XXX/XXX/.log.*]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 03 Apr 2019 12:06:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Line-breaking-not-working-with-rolling-log-files/m-p/396547#M70668</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-04-03T12:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: Line breaking not working with rolling log files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Line-breaking-not-working-with-rolling-log-files/m-p/396548#M70669</link>
      <description>&lt;P&gt;Hi @kamlesh_vaghela these pre-requisites/basic steps are already in place (although i missed that in description). What I am looking for here is that even after all those steps, breaking is not happening properly. &lt;BR /&gt;
And I am doubting the cause behind it is rolling log file. So need to know if any specific step or variable is there to add for this rolling log file line parsing?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2019 13:46:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Line-breaking-not-working-with-rolling-log-files/m-p/396548#M70669</guid>
      <dc:creator>bishtk</dc:creator>
      <dc:date>2019-04-03T13:46:41Z</dc:date>
    </item>
  </channel>
</rss>

