The community will be in read-only from Monday 11:59pm (PT) to Wednesday 7:30am (PT)
The community will be in read-only from Monday 11:59pm (PT) to Wednesday 7:30am (PT)
Application Perf Mgmt (BAC / BSM) Practitioners Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

Sitescope file monitor syntax for present date

SOLVED
Go to solution
Highlighted
ERIKPGP
Occasional Contributor

Sitescope file monitor syntax for present date

Hi Experts,

 

I'm trying to create a type of monitor log file, but the log file is displayed only when an error occurs.
Right now my monitor has these settings to the past date s / \ \ hostname \ / D $ \ / path \ / Logs / offsetMinutes = $ 1440 $ $ $ $ application years 0 months 0 days $ $ $. log /
but I hope to set the monitor to actual date, any ideas?

 

Tanks in advance.

2 REPLIES
Gunnar_L
New Member
Solution

Re: Sitescope file monitor syntax for present date

Hi,

 

For example to monitor a daily log from SiteScope you can use this ReGex:

 

s/C:\SiteScope\logs\SiteScope$year$_$0month$_$0day$.log/

 

That read the current date, daily log format: SiteScope2014_01_09.log

 

Best Regards,

 

Gunnar López
HP Support
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
ERIKPGP
Occasional Contributor

Re: Sitescope file monitor syntax for present date

Gunnar_L. Thanks, your suggestion worked me.

//Add this to "OnDomLoad" event