2
responses

I'm having trouble creating a file input for multiple windows servers for monitoring weblogic log files for multiple nodes. 

The folders are in the following format:

Server1

E:\logs\node1\node1.log100

E:\logs\node2\node2.log100

Server2

E:\logs\node3\node3.log100

E:\logs\node4\node4.log100

etc

So I'm trying to put in the the following:

C:\\logs\\node*\\node*.log*

But it doesn't work. Has anyone else had to over-come this problem before?

Error in the nxlog.log:

ERROR failed to open directory: E:\\logs\\node*\: The filename, directory name, or volume label syntax is incorrect.

AskedApril 10, 2017 - 6:22am

Comments (1)

Answer (1)

Wildcards cannot be used in directory names in the File configuration parameter for the NXLog Community Edition but the Recursive option will do what you need with the following:


File 'C:\logs\node*.log*'
Recursive TRUE

This will match all node*.log* files under C:\logs\ and below.