<?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: Getting issue while parsing event which have no timestamp in logs in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Getting-issue-while-parsing-event-which-have-no-timestamp-in/m-p/411402#M94518</link>
    <description>&lt;P&gt;Hey, I tried this, only issue with this it is breaking event for each line ...&lt;BR /&gt;
I want - if any event has two lines then it should not break till it ends written automatically &lt;BR /&gt;
But your regex is breaking each line separately &lt;/P&gt;</description>
    <pubDate>Thu, 28 Jun 2018 09:39:03 GMT</pubDate>
    <dc:creator>ashikuma</dc:creator>
    <dc:date>2018-06-28T09:39:03Z</dc:date>
    <item>
      <title>Getting issue while parsing event which have no timestamp in logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Getting-issue-while-parsing-event-which-have-no-timestamp-in/m-p/411396#M94512</link>
      <description>&lt;P&gt;Getting issue while parsing events which have no timestamp in logs, it should use date\time from last log event timestamp but it is not updating, can you please help...&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 14:22:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Getting-issue-while-parsing-event-which-have-no-timestamp-in/m-p/411396#M94512</guid>
      <dc:creator>ashikuma</dc:creator>
      <dc:date>2018-06-27T14:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: Getting issue while parsing event which have no timestamp in logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Getting-issue-while-parsing-event-which-have-no-timestamp-in/m-p/411397#M94513</link>
      <description>&lt;P&gt;Please share sample raw data and relevant Splunk inputs.conf props.conf etc. that you have at the moment.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 15:42:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Getting-issue-while-parsing-event-which-have-no-timestamp-in/m-p/411397#M94513</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-06-27T15:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: Getting issue while parsing event which have no timestamp in logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Getting-issue-while-parsing-event-which-have-no-timestamp-in/m-p/411398#M94514</link>
      <description>&lt;P&gt;Issue is after timestamp logs , logs without timestamp starting coming into file and below props are taking those event timestamp in splunk as index time (indexer server time) which shouldn't. it should take timestamp from last event which has already timestamp in logs&lt;/P&gt;

&lt;P&gt;props.conf &lt;/P&gt;

&lt;P&gt;[sourcetype]&lt;BR /&gt;
BREAK_ONLY_BEFORE = [\w+\s\w+\s\d+\s\d+[:]\d+[:]\d+[.]\d+\s\d+]&lt;BR /&gt;
TIME_FORMAT = %a %b %d %H:%M:%S.%6 %Y&lt;/P&gt;

&lt;P&gt;and sample log files - &lt;/P&gt;

&lt;P&gt;[Tue Apr 17 04:11:05.445891 2018] [core:warn] [pid 18022468:tid 1] AH00045: child process 13107268 still did not exit, sending a SIGTERM&lt;BR /&gt;
[Tue Apr 17 04:11:05.445915 2018] [core:warn] [pid 18022468:tid 1] AH00045: child process 10289284 still did not exit, sending a SIGTERM&lt;BR /&gt;
[Tue Apr 17 04:11:05.445937 2018] [core:warn] [pid 18022468:tid 1] AH00045: child process 25296994 still did not exit, sending a SIGTERM&lt;BR /&gt;
Couldn't get &lt;A href="http://stores.intranet.********/ITSupport/redesign/is_anything_broken.aspx" target="_blank"&gt;http://stores.intranet.********/ITSupport/redesign/is_anything_broken.aspx&lt;/A&gt;  404 Not Found at /website/cgi-bin/apps/saletools.cgi line 592.&lt;BR /&gt;
Couldn't get &lt;A href="http://stores.*******/ITSupport/redesign/is_anything_broken.aspx" target="_blank"&gt;http://stores.*******/ITSupport/redesign/is_anything_broken.aspx&lt;/A&gt;  404 Not Found at /website/cgi-bin/apps/saletools.cgi line 592.&lt;BR /&gt;
Couldn't get &lt;A href="http://stores.intranet.*********/ITSupport/redesign/is_anything_broken.aspx" target="_blank"&gt;http://stores.intranet.*********/ITSupport/redesign/is_anything_broken.aspx&lt;/A&gt;  404 Not Found at /website/cgi-bin/apps/saletools.cgi line 592.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:12:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Getting-issue-while-parsing-event-which-have-no-timestamp-in/m-p/411398#M94514</guid>
      <dc:creator>ashikuma</dc:creator>
      <dc:date>2020-09-29T20:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Getting issue while parsing event which have no timestamp in logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Getting-issue-while-parsing-event-which-have-no-timestamp-in/m-p/411399#M94515</link>
      <description>&lt;P&gt;Do you want each line separated into different events? If you want the non-timestamped lines be part of the last timestamped line, then you should add:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SHOULD_LINEMERGE=true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If that is not what you want, then what is the timestamp you are getting for those non-timestamped lines?&lt;/P&gt;

&lt;P&gt;Your TIME_FORMAT should also be:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_FORMAT = %a %b %d %H:%M:%S.%6N %Y
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'd also add:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX = ^\[
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Jun 2018 19:19:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Getting-issue-while-parsing-event-which-have-no-timestamp-in/m-p/411399#M94515</guid>
      <dc:creator>cpetterborg</dc:creator>
      <dc:date>2018-06-27T19:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: Getting issue while parsing event which have no timestamp in logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Getting-issue-while-parsing-event-which-have-no-timestamp-in/m-p/411400#M94516</link>
      <description>&lt;P&gt;Try this,&lt;/P&gt;

&lt;P&gt;[sourcetype]&lt;BR /&gt;
TIME_PREFIX = ^[&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD = 32&lt;BR /&gt;
TIME_FORMAT = %a %b %d %H:%M:%S.%6N %Y&lt;BR /&gt;
LINE_BREAKER = ([\r\n]+)[\w+\s\w+\s\d{2}\s\d{2}:\d{2}:\d{2}.\d{6}\s\d{4}]&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:10:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Getting-issue-while-parsing-event-which-have-no-timestamp-in/m-p/411400#M94516</guid>
      <dc:creator>imthesplunker</dc:creator>
      <dc:date>2020-09-29T20:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: Getting issue while parsing event which have no timestamp in logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Getting-issue-while-parsing-event-which-have-no-timestamp-in/m-p/411401#M94517</link>
      <description>&lt;P&gt;I need all events to be parsed in correct way , if some events are with no timestamp then I want them to use last event which contains timestamp&lt;/P&gt;

&lt;P&gt;I tried your suggestion, it is using time from last event (with  timestamp) but it  should not take all log events which already parsed , it is taking all the events from timestamp startup point and displaying them as well. so it is getting duplicate events&lt;/P&gt;

&lt;P&gt;What I need-  if any event with no stamp come, then I need them to consolidate under the old event which has timestamp, if this is not possible then I need them to create new event but use timestamp from last event.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 09:36:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Getting-issue-while-parsing-event-which-have-no-timestamp-in/m-p/411401#M94517</guid>
      <dc:creator>ashikuma</dc:creator>
      <dc:date>2018-06-28T09:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: Getting issue while parsing event which have no timestamp in logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Getting-issue-while-parsing-event-which-have-no-timestamp-in/m-p/411402#M94518</link>
      <description>&lt;P&gt;Hey, I tried this, only issue with this it is breaking event for each line ...&lt;BR /&gt;
I want - if any event has two lines then it should not break till it ends written automatically &lt;BR /&gt;
But your regex is breaking each line separately &lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 09:39:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Getting-issue-while-parsing-event-which-have-no-timestamp-in/m-p/411402#M94518</guid>
      <dc:creator>ashikuma</dc:creator>
      <dc:date>2018-06-28T09:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: Getting issue while parsing event which have no timestamp in logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Getting-issue-while-parsing-event-which-have-no-timestamp-in/m-p/411403#M94519</link>
      <description>&lt;P&gt;This configuration in &lt;CODE&gt;props.conf&lt;/CODE&gt; works just fine for me.:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sourcetype]
SHOULD_LINEMERGE=true
NO_BINARY_CHECK=true
BREAK_ONLY_BEFORE=^\[\w+\s\w+\s\d+\s\d+[:]\d+[:]\d+[.]\d+\s\d+\]
TIME_FORMAT=%a %b %d %H:%M:%S.%6N %Y
TIME_PREFIX=^\[
MAX_TIMESTAMP_LOOKAHEAD=32
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I did have to make a change to your &lt;CODE&gt;BREAK_ONLY_BEFORE&lt;/CODE&gt; to escape the square brackets and I added the beginning of line anchor. This will result in the following three events from your sample data:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;1       4/17/18
4:11:05.445 AM  
[Tue Apr 17 04:11:05.445891 2018] [core:warn] [pid 18022468:tid 1] AH00045: child process 13107268 still did not exit, sending a SIGTERM
2       4/17/18
4:11:05.445 AM  
[Tue Apr 17 04:11:05.445915 2018] [core:warn] [pid 18022468:tid 1] AH00045: child process 10289284 still did not exit, sending a SIGTERM
3       4/17/18
4:11:05.445 AM  
[Tue Apr 17 04:11:05.445937 2018] [core:warn] [pid 18022468:tid 1] AH00045: child process 25296994 still did not exit, sending a SIGTERM
Couldn't get &lt;A href="http://stores.intranet./ITSupport/redesign/is_anything_broken.aspx" target="test_blank"&gt;http://stores.intranet./ITSupport/redesign/is_anything_broken.aspx&lt;/A&gt; 404 Not Found at /website/cgi-bin/apps/saletools.cgi line 592.
Couldn't get &lt;A href="http://stores./ITSupport/redesign/is_anything_broken.aspx" target="test_blank"&gt;http://stores./ITSupport/redesign/is_anything_broken.aspx&lt;/A&gt; 404 Not Found at /website/cgi-bin/apps/saletools.cgi line 592.
Couldn't get &lt;A href="http://stores.intranet.**/ITSupport/redesign/is_anything_broken.aspx" target="test_blank"&gt;http://stores.intranet.**/ITSupport/redesign/is_anything_broken.aspx&lt;/A&gt; 404 Not Found at /website/cgi-bin/apps/saletools.cgi line 592.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 28 Jun 2018 20:20:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Getting-issue-while-parsing-event-which-have-no-timestamp-in/m-p/411403#M94519</guid>
      <dc:creator>cpetterborg</dc:creator>
      <dc:date>2018-06-28T20:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: Getting issue while parsing event which have no timestamp in logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Getting-issue-while-parsing-event-which-have-no-timestamp-in/m-p/411404#M94520</link>
      <description>&lt;P&gt;that is fine, issue starts after that , if next single event will come without timestamp then it should be like below :-&lt;/P&gt;

&lt;P&gt;4/17/18&lt;BR /&gt;
 4:11:05.445 AM -Couldn't get &lt;A href="http://stores.intranet./ITSupport/redesign/is_anything_broken.aspx"&gt;http://stores.intranet./ITSupport/redesign/is_anything_broken.aspx&lt;/A&gt; 404 Not Found at /website/cgi-bin/apps/saletools.cgi line 592.&lt;/P&gt;

&lt;P&gt;but in my case it is coming into next event but with old event data also, like below... it should not contain old data with itself &lt;/P&gt;

&lt;P&gt;[Tue Apr 17 04:11:05.445937 2018] [core:warn] [pid 18022468:tid 1] AH00045: child process 25296994 still did not exit, sending a SIGTERM&lt;BR /&gt;
 Couldn't get &lt;A href="http://stores.intranet./ITSupport/redesign/is_anything_broken.aspx"&gt;http://stores.intranet./ITSupport/redesign/is_anything_broken.aspx&lt;/A&gt; 404 Not Found at /website/cgi-bin/apps/saletools.cgi line 592.&lt;BR /&gt;
 Couldn't get &lt;A href="http://stores./ITSupport/redesign/is_anything_broken.aspx"&gt;http://stores./ITSupport/redesign/is_anything_broken.aspx&lt;/A&gt; 404 Not Found at /website/cgi-bin/apps/saletools.cgi line 592.&lt;BR /&gt;
 Couldn't get &lt;A href="http://stores.intranet.**/ITSupport/redesign/is_anything_broken.aspx"&gt;http://stores.intranet.**/ITSupport/redesign/is_anything_broken.aspx&lt;/A&gt; 404 Not Found at /website/cgi-bin/apps/saletools.cgi line 592&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jun 2018 10:01:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Getting-issue-while-parsing-event-which-have-no-timestamp-in/m-p/411404#M94520</guid>
      <dc:creator>ashikuma</dc:creator>
      <dc:date>2018-06-29T10:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: Getting issue while parsing event which have no timestamp in logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Getting-issue-while-parsing-event-which-have-no-timestamp-in/m-p/411405#M94521</link>
      <description>&lt;P&gt;that is fine, but issue started after that when new log comes in without timestamp then it should take timestamp from previous event and should look like below:-&lt;/P&gt;

&lt;P&gt;4/17/18 4:11:05.445 AM  Couldn't get &lt;A href="http://stores.intranet./ITSupport/redesign/is_anything_broken.aspx"&gt;http://stores.intranet./ITSupport/redesign/is_anything_broken.aspx&lt;/A&gt; 404 Not Found at /website/cgi-bin/apps/saletools.cgi line 592.&lt;/P&gt;

&lt;P&gt;But it is coming like below ,it is taking timestamp from last stored event (that is good) , but along with that it is taking old timestamped event data also and displaying that as new event which is making duplicate entries:&lt;/P&gt;

&lt;P&gt;[Tue Apr 17 04:11:05.445937 2018] [core:warn] [pid 18022468:tid 1] AH00045: child process 25296994 still did not exit, sending a SIGTERM&lt;BR /&gt;
 Couldn't get &lt;A href="http://stores.intranet./ITSupport/redesign/is_anything_broken.aspx"&gt;http://stores.intranet./ITSupport/redesign/is_anything_broken.aspx&lt;/A&gt; 404 Not Found at /website/cgi-bin/apps/saletools.cgi line 592.&lt;BR /&gt;
Couldn't get &lt;A href="http://stores./ITSupport/redesign/is_anything_broken.aspx"&gt;http://stores./ITSupport/redesign/is_anything_broken.aspx&lt;/A&gt; 404 Not Found at /website/cgi-bin/apps/saletools.cgi line 592.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jun 2018 10:07:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Getting-issue-while-parsing-event-which-have-no-timestamp-in/m-p/411405#M94521</guid>
      <dc:creator>ashikuma</dc:creator>
      <dc:date>2018-06-29T10:07:21Z</dc:date>
    </item>
  </channel>
</rss>

