Re: Sitescope log file monitor question (157 Views)
Reply
Advisor
Deepo
Posts: 23
Registered: ‎09-28-2013
Message 1 of 6 (251 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.

 

 

Please use plain text.
HP Expert
Dmitry Shevchenko
Posts: 4,787
Registered: ‎01-30-2008
Message 2 of 6 (222 Views)

Re: Sitescope log file monitor question

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

Please use plain text.
Advisor
Deepo
Posts: 23
Registered: ‎09-28-2013
Message 3 of 6 (210 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.

Please use plain text.
HP Expert
Dmitry Shevchenko
Posts: 4,787
Registered: ‎01-30-2008
Message 4 of 6 (207 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.

Please use plain text.
Advisor
Deepo
Posts: 23
Registered: ‎09-28-2013
Message 5 of 6 (162 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

Please use plain text.
HP Expert
kenneth.gonzalez
Posts: 1,528
Registered: ‎04-28-2011
Message 6 of 6 (157 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
Please use plain text.
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