KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

Date macro and scripts

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting
View previous topic :: View next topic  
Author Message
spud



Joined: 16 Dec 2004
Posts: 22

PostPosted: Fri Apr 01, 2005 8:44 am    Post subject: Date macro and scripts Reply with quote

I am running version 5.12 and have a question about the use of date macros.

Right now my log file changes each night and I am using the file name format mm-dd-yy.txt. Each night I am updating some reports that include all the daily logs for the current month. In the script that runs the nightly reports, I append each of the daily log files before running the report. To append each daily log file, I us a macro like this:

Append c:\program files\hostmonitor\Logs\%mm%-01-%yy%
Append c:\program files\hostmonitor\Logs\%mm%-02-%yy%
(continue day 1 through day 31)
Append c:\program files\hostmonitor\Logs\%mm%-30-%yy%
Append c:\program files\hostmonitor\Logs\%mm%-31-%yy%

This works great at the end of the month, but at the start of each month, the script creates a report with only 1 day's data. What I really would like is to use the data from the previous 30 days. My question: Is there any way to reference a log file date relative to today? Or some other way to accomplish the same task?
For example: %dd-1% (i.e. today-1 day) or %dd-2% (today-2 days)
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Fri Apr 01, 2005 12:45 pm    Post subject: Reply with quote

Sorry, Log Analyzer does not provide such option.
May be in next version...

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

KS-Soft Forum Index