ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

Using regex with the logmon probe for the monitored file

book

Article ID: 224598

calendar_today

Updated On:

Products

DX Unified Infrastructure Management (Nimsoft / UIM)

Issue/Introduction

I need to have a way to monitor a file where the name is constantly changing.

Environment

Release : 20.3

Component : UIM - LOG_MONITORING_SERVICE

Resolution

The following are some examples on how to accomplish this:


Path pattern for windows:

C:\testLogmon\stat(|15$|60$|61$|16$|)\ntevl.txt 

File pattern for windows example:

c:\temp\(|cisco.log|local7.log|)

c:\temp\(|cisco*.log|)

File pattern on Linux:

/var/opt/(|local7.log|cisco.log|)

/var/opt/(|local*.log|)