You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flume.apache.org by "Andrea Rota (JIRA)" <ji...@apache.org> on 2016/05/21 15:07:12 UTC

[jira] [Created] (FLUME-2911) Add includePattern option in SpoolDirectorySource configuration

Andrea Rota created FLUME-2911:
----------------------------------

             Summary: Add includePattern option in SpoolDirectorySource configuration
                 Key: FLUME-2911
                 URL: https://issues.apache.org/jira/browse/FLUME-2911
             Project: Flume
          Issue Type: Improvement
          Components: Sinks+Sources
    Affects Versions: v1.6.0
            Reporter: Andrea Rota


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.

I 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)