Absent Member.
Absent Member.
320 views

FlexConnector Multiple Folder File: Recursive directories?

Hi *,

I'm wondering how to process events stored in files organized as follow on the file system:

/logs/server1/events.log

/logs/server2/events.log

/logs/serverX/events.log

The problem is not the messages format but the sub-directories.

I don't know how many servers will generate an events.log file. The number may grow in the future.

Is there a way to configure the FlexConnector to perform some recursion? (with a max. depth level) or use a regex to specify the directory? (/log/server*/)

Thanks for your comments!

/x

Labels (2)
0 Likes
2 Replies
Absent Member.
Absent Member.

Try this setting ... processfoldersrecursively=true and point the connector to /logs/

You can then use the wildcard option set to events.log to only process those types of log files.

0 Likes
Absent Member.
Absent Member.

Great! Thanks Mark!

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.