Sitescope file monitor syntax for present date (373 Views)
Reply
Occasional Advisor
ERIKPGP
Posts: 10
Registered: ‎12-15-2011
Message 1 of 3 (373 Views)
Accepted Solution

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.

HP Expert
Gunnar_L
Posts: 304
Registered: ‎05-22-2012
Message 2 of 3 (355 Views)

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
ERIKPGP
Posts: 10
Registered: ‎12-15-2011
Message 3 of 3 (347 Views)

Re: Sitescope file monitor syntax for present date

Gunnar_L. Thanks, your suggestion worked me.

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.