I am attempting to write a collector for various GroupWise logs and I
need to set the date and time of the event. I have setup the SDK and am
able to parse the data but when I try to set the date and time I get an
error: "Parsing failed: TypeError: Cannot find function
setObserverEventTime.; input: (line from the log file). My code
however is:

Code:
--------------------

this.tnrn = new Date(2016,05,20,13,13,30,0);
Event.setObserverEventTime(this.tnrn);

--------------------


I am starting with manually setting the date and time. I can then parse
the log for the actual time. I am using this
https://www.novell.com/developer/plu...tor_dates.html as a
guide.

Second issue, is it possible to read the log filename? or reread the
first line of the log file each time? The logs are saved as MMDDpoa.001
and have the date as the first line of the log file. Each line only has
the time for the log entry.

Code:
--------------------

****** 05-15-16 00:00:00 ******
00:00:00 F4F7 *** Switched from old log file: a new day has started ***
00:34:53 F3BF MSG 8111397 Queuing to MTA
00:34:53 F4BB MTP: File sent: 4737c42d.1u1 Size: 1828

--------------------


Any help would be appreciated.
Thanks
Jimmy


--
jimmyblakeney
------------------------------------------------------------------------
jimmyblakeney's Profile: https://forums.netiq.com/member.php?userid=11972
View this thread: https://forums.netiq.com/showthread.php?t=55930