GitHub user pvillard31 opened a pull request:
https://github.com/apache/nifi/pull/980
NIFI-1170 - Improved TailFile processor to support multiple files tailing
Modifications should not break backward compatibility.
Two modes: single file (default) or multi files.
In case of multi files mode, a base directory property is required.
This will be the base directory to recursively look for the files to
tail. Since this lookup can be consuming, I assumed that files to tail
must exist when starting the processor.
The rolling file pattern now accepts the â${filename}â keyword to
reference
the original filename (without the extension). This is useful when
defining the rolling file pattern for multiple files in the same
directory. It obviously supposes that all the files to tail have a
similar rolling pattern. Besides the rolling file must be plain text
(no compression supported so far, this is wip).
This PR includes the modifications proposed in PR #490.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/pvillard31/nifi tailfile-regex
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/nifi/pull/980.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #980
----
commit c7e4ba609697727c188e1f7db1658d6d9c75abc1
Author: Pierre Villard <[email protected]>
Date: 2016-08-31T16:53:26Z
NIFI-1170 - Improved TailFile processor to support multiple files tailing
Modifications should not break backward compatibility.
Two modes: single file (default) or multi files.
In case of multi files mode, a base directory property is required.
This will be the base directory to recursively look for the files to
tail. Since this lookup can be consuming, I assumed that files to tail
must exist when starting the processor.
The rolling file pattern accepts the â${filename}â keyword to reference
the original filename (without the extension). This is useful when
defining the rolling file pattern for multiple files in the same
directory. It obviously supposes that all the files to tail have a
similar rolling pattern. Besides the rolling file must be plain text
(no compression supported so far).
This PR includes the modifications proposed in PR #490.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---