I don't understand how includePattern works in Flume. It should accept a regular expression, but the only one that is working to me is the following:
# accepts only .zip files
agent.sources.src1.includePattern=^.*\.zip$
But if for example I want to match only files with format WWWW.DDDDD.zip (e.g. abc.123.zip) the followings does not work:
agent.sources.src1.includePattern=^[^\.]+\.[^\.]+\.zip$
agent.sources.src1.includePattern=^\w+\.\d+\.zip$
Does anyone know how regex expressions work in Flume?