Dirscan regular expression for today
search cancel

Dirscan regular expression for today

book

Article ID: 280383

calendar_today

Updated On:

Products

DX Unified Infrastructure Management (Nimsoft / UIM)

Issue/Introduction

Everyday "C:\Project_A" directory will create a subfolder with the "YYYYMMDD" format, i.e. 20240229.

Alarm is triggered if the file size of today creation sub-folder is equal to 0 using dirscan probe. 

What should I indicate in the regular expression in the scan directory such that it will only scan today creation sub-folder?

 

=========Configuration========

Scan directory

-Directory: C:\Project_A

-Pattern: <What should I indicate?>

 

Alarm Message| Size of File

-Watch: Expect the value <=0 KB

Resolution

Regex has no concept of time. So it is not possible to create a regex that matches today's date. 

You might be able to use logmon to achieve it: