Re: Sitescope log file monitor question (217 Views)
Reply
Advisor
Deepo
Posts: 26
Registered: ‎09-28-2013
Message 1 of 6 (311 Views)

Sitescope log file monitor question

Hi All,

 

Hope to find your help on the below,

 

We need to implement log file monitor,

the log file is in folder,

and this file is generated periodically started with same name & numbers ...

 

Example:    deepo_0101_987654.log , deepo_0108_87653.log  And so on

 

these numbers are random.

 

how to implement regex for this file to monitor every new file ?

 

Thanks.

 

 

HP Expert
Dmitry Shevchenko
Posts: 4,853
Registered: ‎01-30-2008
Message 2 of 6 (282 Views)

Re: Sitescope log file monitor question

SiteScope doesn't provide capabilities to build a regex for file names containing arbitrary numbers.

Advisor
Deepo
Posts: 26
Registered: ‎09-28-2013
Message 3 of 6 (270 Views)

Re: Sitescope log file monitor question

Thanks alot for your help,

 

I understood this,

 

One more question, what if I tried to monitor [ fileName_$PID.log  ] ?

 

as per this link [ http://sitescope.tellurian.net/SiteScope/docs/regexp.htm ] we can monitor date variable names.

 

can we do the same with PID ?

 

 

Thanks in advance.

HP Expert
Dmitry Shevchenko
Posts: 4,853
Registered: ‎01-30-2008
Message 4 of 6 (267 Views)

Re: Sitescope log file monitor question

Yes, you can use special date and time variables as part of regex for file names. However, PID is nothing but a set of arbitrary figures, so the answer would be the same - SiteScope doesn't allow you to build a regex for such file names.

Advisor
Deepo
Posts: 26
Registered: ‎09-28-2013
Message 5 of 6 (222 Views)

Re: Sitescope log file monitor question

ok, for dates,

 

if the file name contains variable date, sitescope support regex for [ year, month, day, hour, minute, milleseconds ].

 

Aren't there regex for seconds ?

 

Thanks

HP Expert
kenneth.gonzalez
Posts: 1,686
Registered: ‎04-28-2011
Message 6 of 6 (217 Views)

Re: Sitescope log file monitor question

Hi,

No, only month,day,year system variables are supported. As workaround you may try the multilog monitor which does support regex for filename.
Kenneth Gonzalez
HP Support

If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.

If you haven’t tried it yet, come and join us in our entitled forums at Support Customer Forums
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.