<?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 correctly configure timestamp extraction? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-correctly-configure-timestamp-extraction/m-p/13067#M1129</link>
    <description>&lt;P&gt;This appears to be a line breaking issue.&lt;/P&gt;

&lt;P&gt;Try adding the following to props.conf:&lt;/P&gt;

&lt;P&gt;BREAK_ONLY_BEFORE_DATE = true&lt;/P&gt;</description>
    <pubDate>Fri, 07 May 2010 07:55:12 GMT</pubDate>
    <dc:creator>Simon_Shelston</dc:creator>
    <dc:date>2010-05-07T07:55:12Z</dc:date>
    <item>
      <title>How to correctly configure timestamp extraction?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-correctly-configure-timestamp-extraction/m-p/13066#M1128</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Here is a sample log&lt;/STRONG&gt;:&lt;/P&gt;

&lt;PRE&gt;
2010-05-06 16:41:18,082 INFO SplunkCLI :: Executing: "/Users/hs/bin/"  status space  

    Thu May  6 16:40:42 2010                    1              unknown  /var/folders/0g/0g2PnEjcEOeS9P-W4W4aIQkTMTmp9142.txt
---------------------------------------
Collapse files into common directories?
---------------------------------------
                                       Enter [Y]es or [N]o &amp;gt; 
------------------------------
Index found files into splunk?
------------------------------
                             Enter choice: All/Some/[None] &amp;gt; 0
2010-05-06 16:41:54,364 INFO splunk_data :: report_item_fspath='/Users/hstest_find_ascii' file_name='test_found.py' test_name='test_find_ascii' test_result='PASSED' error_message=''
2010-05-06 16:41:54,364 INFO conftest :: RUNTEST_TEARDOWN test_ascii runtime=163
&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Currently splunk sees this as two events&lt;/STRONG&gt;: &lt;/P&gt;

&lt;PRE&gt;2010-05-06 16:41:18,082 ...
    Thu May  6 16:40:42 2010 ...&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;How can I correctly extract the timestamp to turn the sample log above as three events?&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;2010-05-06 16:41:18,082 ...
2010-05-06 16:41:54,364 ...
2010-05-06 16:41:54,364 ...&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;My props.conf in etc/apps/my-app/local/props.conf looks like this&lt;/STRONG&gt;:&lt;/P&gt;

&lt;PRE&gt;[sourcetype::testlog]
MAX_TIMESTAMP_LOOKAHEAD = 25&lt;/PRE&gt;</description>
      <pubDate>Fri, 07 May 2010 07:47:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-correctly-configure-timestamp-extraction/m-p/13066#M1128</guid>
      <dc:creator>hans</dc:creator>
      <dc:date>2010-05-07T07:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to correctly configure timestamp extraction?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-correctly-configure-timestamp-extraction/m-p/13067#M1129</link>
      <description>&lt;P&gt;This appears to be a line breaking issue.&lt;/P&gt;

&lt;P&gt;Try adding the following to props.conf:&lt;/P&gt;

&lt;P&gt;BREAK_ONLY_BEFORE_DATE = true&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2010 07:55:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-correctly-configure-timestamp-extraction/m-p/13067#M1129</guid>
      <dc:creator>Simon_Shelston</dc:creator>
      <dc:date>2010-05-07T07:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to correctly configure timestamp extraction?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-correctly-configure-timestamp-extraction/m-p/13068#M1130</link>
      <description>&lt;P&gt;Simon gave the best answer.&lt;/P&gt;

&lt;P&gt;First of all, you have to tell Splunk that this is a multi line event, and then when the log should be broken into an event. In your case use this directive in props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::testlog]
BREAK_ONLY_BEFORE_DATE = true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Honestly I'm not 100% sure and I would check if the second line is considered an event-breaker or not.&lt;/P&gt;

&lt;P&gt;Regards,
Marco Scala - Consoft&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2010 19:51:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-correctly-configure-timestamp-extraction/m-p/13068#M1130</guid>
      <dc:creator>marcoscala</dc:creator>
      <dc:date>2010-05-07T19:51:47Z</dc:date>
    </item>
  </channel>
</rss>

