According to the docs, it’s not supported in the directory portion of the path.
Without knowing what your directory structure looks like (above, and below
those test directories), I cannot say whether this will be of any value, but
did you notice (or try) the recursive functionality. E.G., using a Windows
example, this would be an explicit reference to one subdirectory, and its
logging file content:
define IISLOGFILE 'c:\inetpub\logs\LogFiles\W3SVC\ex*.log'
But if there are multiple W3SVCxx subdirectories, and I want _all_ of their
logs, then I can also codify this:
define IISLOGFILE 'c:\inetpub\logs\LogFiles\ex*.log'
And that will pull all of the ex*.log files from all of those intermediate
directories.
That path construct requires that recursion be enabled, but that is the default
setting anyway. But it can also be explicitly disabled/enabled (as might be
needed within a large conf file) with True/False settings, e.g.:
define RECURSIVE True
Anyway, if your log file naming convention and/or the directory structure are
such that you can target the desired files using recursion, that might be
another way to solve your problem. Just wanted to be sure that you had tried
that.
From: Kesc cseK [mailto:kjatu...@gmail.com]
Sent: Wednesday, May 04, 2016 2:14 AM
To: nxlog-ce-users@lists.sourceforge.net
Subject: [nxlog-ce-users] nxlog im_file wildcard directory
Hello,
Is there any way for im_file module to accept wildcard directories?
Lets say i have directories with following namimg: ’test1’, ’test2’, ’test3’,
etc.
I want to read all files from all those directories, which start with ‘test'.
Nxlog im_file config ‘file’ descriptor does not accept wildcards like -
'/test*/*.log’. I get error messages 'ERROR failed to open directory: /test*:
No such file or directory’.
Is there any way to bypass that? Testing on Centos 7.
Thank you in advance.
The information transmitted, including any content in this communication is
confidential, is intended only for the use of the intended recipient and is the
property of the Western Union Company or its affiliates and subsidiaries. If
you are not the intended recipient, you are hereby notified that any use of the
information contained in or transmitted with the communication or
dissemination, distribution, or copying of this communication is strictly
prohibited. If you have received this communication in error, please notify the
Western Union sender immediately by replying to this message and delete the
original message
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
nxlog-ce-users mailing list
nxlog-ce-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nxlog-ce-users