GitHub user andrearota opened a pull request:
https://github.com/apache/flume/pull/60
FLUME-2911. Added include pattern option in SpoolDir source
Current implementation of `SpoolDirectorySource` does not allow users to
specify a regex pattern to select which files should be monitored. Instead, the
current implementation allows users to specify which should not monitored, via
the `ignorePattern` parameter.
We implemented the feature, allowing users to specify the include pattern
as `a1.sources.src-1.includePattern=^foo.*$` (includes all the files that
starts in "foo").
By default, the `includePattern` regex is set to `^.*$` (all files).
Include and exclude patterns can be used at same time and the results are
combined.
We also opened this JIRA issue:
https://issues.apache.org/jira/browse/FLUME-2911
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/tenaris/flume FLUME-2911
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flume/pull/60.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 #60
----
commit 39eb89d8d86abe9a4111e44e8fff6bf3bb80fa65
Author: Andrea Rota <[email protected]>
Date: 2016-08-04T08:09:16Z
FLUME-2911. Added include pattern option in SpoolDir source
----
---
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.
---