<?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: Log file with differing message formats in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Log-file-with-differing-message-formats/m-p/88371#M97261</link>
    <description>&lt;P&gt;If you can be sure that you'll always have a 1 line = 1 event parity for this data source, the simple way to fix the line-breaking is simply to set :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SHOULD_LINEMERGE = false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The different time formats might cause a different kind of problem, as Splunk's time stamp extraction heuristic are not fond of this situation.&lt;/P&gt;

&lt;P&gt;Still, it might be worth it to see how the time stamp extraction behaves once you've fixed the line-breaking. Perhaps you should still add, at a minimum :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;MAX_TIMESTAMP_LOOKAHEAD = 37
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;...in order to scope the time stamp extraction as much as we currently can.&lt;/P&gt;</description>
    <pubDate>Fri, 09 Mar 2012 00:58:51 GMT</pubDate>
    <dc:creator>hexx</dc:creator>
    <dc:date>2012-03-09T00:58:51Z</dc:date>
    <item>
      <title>Log file with differing message formats</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Log-file-with-differing-message-formats/m-p/88370#M97260</link>
      <description>&lt;P&gt;I've run across an odd log file from EMC's Data Protection application that is logging two very different log formats into a single file.  Example:&lt;BR /&gt;
&lt;CODE&gt;&lt;BR /&gt;
2012-03-08 12:06:30,643 INFO  Webapp Launcher [Init] Connection to controller at fdpap01.oa.domain.com:3916&lt;BR /&gt;
2012-03-08 12:06:30,643 INFO  Webapp Launcher [Init] Connection to reporter at fdpap01.oa.domain.com:4002&lt;BR /&gt;
INFO     2560.2564     20120308:123239              service - ServerCtrlHandler(): Service stop signalled - exiting&lt;BR /&gt;
INFO     2676.2696     20120308:123532               webapp - daemonMain(): Setting memory limit '-Xmx128m'&lt;BR /&gt;
INFO     2676.2696     20120308:123535               webapp - daemonMain(): DPA Webapp&lt;BR /&gt;
INFO     2676.2696     20120308:123535               webapp - daemonMain(): (c) 1994-2009 EMC Corporation.  All rights reserved.&lt;BR /&gt;
INFO     2676.2696     20120308:123535               webapp - daemonMain(): Version: 5.0.1 build 4792 on windows&lt;BR /&gt;
INFO     2676.2696     20120308:123535               webapp - daemonMain(): Logging at level Info&lt;BR /&gt;
2012-03-08 12:36:01,967 INFO  Webapp Launcher [Init] Connection to controller at fdpap01.oa.domain.com:3916&lt;BR /&gt;
2012-03-08 12:36:01,967 INFO  Webapp Launcher [Init] Connection to reporter at fdpap01.oa.domain.com:4002&lt;BR /&gt;
INFO     2676.2680     20120308:133056              service - ServerCtrlHandler(): Service stop signalled - exiting&lt;BR /&gt;
INFO     3912.3884     20120308:133135               webapp - daemonMain(): Setting memory limit '-Xmx128m'&lt;BR /&gt;
INFO     3912.3884     20120308:133135               webapp - daemonMain(): DPA Webapp&lt;BR /&gt;
INFO     3912.3884     20120308:133135               webapp - daemonMain(): (c) 1994-2009 EMC Corporation.  All rights reserved.&lt;BR /&gt;
INFO     3912.3884     20120308:133135               webapp - daemonMain(): Version: 5.0.1 build 4792 on windows&lt;BR /&gt;
INFO     3912.3884     20120308:133135               webapp - daemonMain(): Logging at level Info&lt;BR /&gt;
2012-03-08 13:31:38,752 INFO  Webapp Launcher [Init] Connection to controller at fdpap01.oa.domain.com:3916&lt;BR /&gt;
2012-03-08 13:31:38,752 INFO  Webapp Launcher [Init] Connection to reporter at fdpap01.oa.domain.com:4002&lt;BR /&gt;
&lt;/CODE&gt;&lt;BR /&gt;
Whenever I've had to assist splunk with line breaking &amp;amp; date extraction, it's been a consistent format for the entire file.  Either specified a source or sourcetype, and the specifics to break on.  Unsure how to handle this one in regards to date extraction.  For the lines starting with the severity, the third column is the datestamp, and does line up that each of these should be a different event.  Currently by default Splunk is merging these.&lt;/P&gt;

&lt;P&gt;Ideas?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2012 00:44:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Log-file-with-differing-message-formats/m-p/88370#M97260</guid>
      <dc:creator>mikelanghorst</dc:creator>
      <dc:date>2012-03-09T00:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: Log file with differing message formats</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Log-file-with-differing-message-formats/m-p/88371#M97261</link>
      <description>&lt;P&gt;If you can be sure that you'll always have a 1 line = 1 event parity for this data source, the simple way to fix the line-breaking is simply to set :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SHOULD_LINEMERGE = false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The different time formats might cause a different kind of problem, as Splunk's time stamp extraction heuristic are not fond of this situation.&lt;/P&gt;

&lt;P&gt;Still, it might be worth it to see how the time stamp extraction behaves once you've fixed the line-breaking. Perhaps you should still add, at a minimum :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;MAX_TIMESTAMP_LOOKAHEAD = 37
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;...in order to scope the time stamp extraction as much as we currently can.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2012 00:58:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Log-file-with-differing-message-formats/m-p/88371#M97261</guid>
      <dc:creator>hexx</dc:creator>
      <dc:date>2012-03-09T00:58:51Z</dc:date>
    </item>
  </channel>
</rss>

