Application Perf Mgmt (BAC / BSM) Practitioners Forum
Showing results for 
Search instead for 
Do you mean 

Sitescope file monitor syntax for present date

SOLVED
Go to Solution
Highlighted
Occasional Advisor

Sitescope file monitor syntax for present date

[ Edited ]

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.

1 ACCEPTED SOLUTION
HPE Expert

Re: Sitescope file monitor syntax for present date

[ Edited ]

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.
2 REPLIES
HPE Expert

Re: Sitescope file monitor syntax for present date

[ Edited ]

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.
Occasional Advisor

Re: Sitescope file monitor syntax for present date

Gunnar_L. Thanks, your suggestion worked me.