jayu_rao has asked for the wisdom of the Perl Monks concerning the following question:
1st log file is having the content: ************************************************************** ----- Tue May 12 11:27:41 2015::20250716:: The application is starting ----- Tue May 12 11:27:52 2015::20250716:: Checking status of application ----- ----- Tue May 12 11:27:52 2015::20250716::Process has exited at Tue May 12 11:27:52 2015 with return value 1. ----- ----- Tue May 12 11:27:52 2015::20250716::Process has exited due to initialization failure. ----- ----- *******************************************************************************
2nd Log File content: ******************************************************************************* 2015-05-12 11:27:45,735 The application could not be started Error is due to invalid username or password! 2015-05-12 11:27:45,866 The application could not be started Error is due to invalid username or password! 2015-05-12 11:27:45,938 The application could not be started Error is due to invalid username or password! *******************************************************************************
The temporary file is having only the following lines (instead of the complete file):******************************************************************************* 2015-05-12 11:27:45,938 The application could not be started Error is due to invalid username or password! *******************************************************************************
Guess I have to use extract_timestamp and compare_timestamp route?Regards,
Jay
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Store log file content from EOF till final occurrence of timestamp
by Athanasius (Archbishop) on Jul 02, 2015 at 07:56 UTC | |
by 1nickt (Canon) on Jul 02, 2015 at 12:39 UTC | |
by Athanasius (Archbishop) on Jul 02, 2015 at 13:22 UTC | |
by 1nickt (Canon) on Jul 02, 2015 at 14:00 UTC |