<?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 can I event break a catalina.out log with two different time stamps ? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-event-break-a-catalina-out-log-with-two-different-time/m-p/446390#M77653</link>
    <description>&lt;P&gt;You don't need control over the inputs.. I'm assuming your the Splunk admin, so you have to control the Splunk conf files. I don't see why it's so difficult to create an additional sourcetype or add this to existing sourcetype. &lt;/P&gt;</description>
    <pubDate>Mon, 05 Nov 2018 14:40:35 GMT</pubDate>
    <dc:creator>skoelpin</dc:creator>
    <dc:date>2018-11-05T14:40:35Z</dc:date>
    <item>
      <title>How can I event break a catalina.out log with two different time stamps ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-event-break-a-catalina-out-log-with-two-different-time/m-p/446384#M77647</link>
      <description>&lt;P&gt;Hello, my developers want to read a catalina.out log file. &lt;/P&gt;

&lt;P&gt;It contains events with two distinct time stamp formats.&lt;/P&gt;

&lt;P&gt;Is there a way to have a source type honor both timestamps, and create 2 separate events using either time stamp?&lt;/P&gt;

&lt;P&gt;I know I can pick one then mash the others into one event but I'd like to get around that if possible.&lt;/P&gt;

&lt;P&gt;e.g. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;03-Oct-2018 10:30:27.651 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version:        Secure Web server
2018-10-10 12:37:37.797  INFO 23997 --- [nio-8443-exec-8] o.s.web.servlet.DispatcherServlet        : FrameworkServlet 'dispatcherServlet': initialization completed in 40 ms
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have asked to unravel this log file into it's components (other uniform log files) but that hasn't gone anywhere. &lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2018 18:49:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-event-break-a-catalina-out-log-with-two-different-time/m-p/446384#M77647</guid>
      <dc:creator>pretzel2</dc:creator>
      <dc:date>2018-10-25T18:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: How can I event break a catalina.out log with two different time stamps ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-event-break-a-catalina-out-log-with-two-different-time/m-p/446385#M77648</link>
      <description>&lt;P&gt;No.. Standardize into the same timestamp or create an additional sourcetype for this new timestamp format&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2018 19:08:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-event-break-a-catalina-out-log-with-two-different-time/m-p/446385#M77648</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2018-10-25T19:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: How can I event break a catalina.out log with two different time stamps ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-event-break-a-catalina-out-log-with-two-different-time/m-p/446386#M77649</link>
      <description>&lt;P&gt;Splunk breaks events by timestamp according to certain patterns.&lt;/P&gt;

&lt;P&gt;If you tell him which patterns to look for then he'll do the job as fine as if you had only one timestamp format.&lt;/P&gt;

&lt;P&gt;What you need to do is tell him which patterns to expect and when he should do the breaking.&lt;/P&gt;

&lt;P&gt;In order to do this:&lt;/P&gt;

&lt;P&gt;First: Create a LINE_BREAKER which encompasses every pattern of timestamp you're willing to use to separate the events.&lt;/P&gt;

&lt;P&gt;Second: You supply Splunk with the the format of said timestamps so he can recognize and create the right times for your  events.&lt;/P&gt;

&lt;P&gt;This is done by creating a custom datetime.xml associated with your sourcetype to extract the timestamp values correctly:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.0.5/Data/Configuredatetimexml"&gt;http://docs.splunk.com/Documentation/Splunk/7.0.5/Data/Configuredatetimexml&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Here's one example with several different formats you can follow and that should suit your needs:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://www.function1.com/2013/01/oh-no-splunking-log-files-with-multiple-formats-no-problem"&gt;https://www.function1.com/2013/01/oh-no-splunking-log-files-with-multiple-formats-no-problem&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Hope this helps &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Oct 2018 14:26:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-event-break-a-catalina-out-log-with-two-different-time/m-p/446386#M77649</guid>
      <dc:creator>tiagopeq</dc:creator>
      <dc:date>2018-10-26T14:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: How can I event break a catalina.out log with two different time stamps ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-event-break-a-catalina-out-log-with-two-different-time/m-p/446387#M77650</link>
      <description>&lt;P&gt;Yes, while I like this answer and have used it many times in the past.  Sometimes I have not control over the input and in this case it is better to read the .out file with mixed inputs rather than not.  I totally understand and it is a better approach to make the timestamps consistent and the log file more pure than mixed.  See the second answer posted to this question.  I will be giving it a try and report back. &lt;/P&gt;</description>
      <pubDate>Fri, 02 Nov 2018 18:52:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-event-break-a-catalina-out-log-with-two-different-time/m-p/446387#M77650</guid>
      <dc:creator>pretzel2</dc:creator>
      <dc:date>2018-11-02T18:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: How can I event break a catalina.out log with two different time stamps ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-event-break-a-catalina-out-log-with-two-different-time/m-p/446388#M77651</link>
      <description>&lt;P&gt;Thank you so much!  I will give this a try and report back. &lt;/P&gt;</description>
      <pubDate>Fri, 02 Nov 2018 18:53:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-event-break-a-catalina-out-log-with-two-different-time/m-p/446388#M77651</guid>
      <dc:creator>pretzel2</dc:creator>
      <dc:date>2018-11-02T18:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: How can I event break a catalina.out log with two different time stamps ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-event-break-a-catalina-out-log-with-two-different-time/m-p/446389#M77652</link>
      <description>&lt;P&gt;This has bad idea written all over it. Best of luck handling this tech debt once in production&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 14:38:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-event-break-a-catalina-out-log-with-two-different-time/m-p/446389#M77652</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2018-11-05T14:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: How can I event break a catalina.out log with two different time stamps ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-event-break-a-catalina-out-log-with-two-different-time/m-p/446390#M77653</link>
      <description>&lt;P&gt;You don't need control over the inputs.. I'm assuming your the Splunk admin, so you have to control the Splunk conf files. I don't see why it's so difficult to create an additional sourcetype or add this to existing sourcetype. &lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 14:40:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-event-break-a-catalina-out-log-with-two-different-time/m-p/446390#M77653</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2018-11-05T14:40:35Z</dc:date>
    </item>
  </channel>
</rss>

