Using regex with the logmon probe for the monitored file

book

Article ID: 224598

calendar_today

Updated On:

Products

DX Infrastructure Management

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|)