[ 
https://issues.apache.org/jira/browse/NIFI-5931?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Julian Gimbel updated NIFI-5931:
--------------------------------
    Description: 
Currently if we want to get a 2 day old file every day where the filename 
contains the date we need to get the whole folder of data and then filter the 
files with routeOnAttribute. It would be good to use expression language to 
create a file filter regex like:

.**${now():minus(86400000):format('yyyyMMdd')}.**

  was:
Currently if we want to get a 2 day old file every day where the filename 
contains the date we need to get the whole folder of data and then filter the 
files with routeOnAttribute. It would be good to use expression language to 
create a file filter regex like:

.*${now():minus(86400000):format('yyyyMMdd')}.*


> GetHDFS Property File Filter Regex should use Expression Language
> -----------------------------------------------------------------
>
>                 Key: NIFI-5931
>                 URL: https://issues.apache.org/jira/browse/NIFI-5931
>             Project: Apache NiFi
>          Issue Type: Improvement
>          Components: Core Framework
>    Affects Versions: 1.8.0
>            Reporter: Julian Gimbel
>            Priority: Minor
>
> Currently if we want to get a 2 day old file every day where the filename 
> contains the date we need to get the whole folder of data and then filter the 
> files with routeOnAttribute. It would be good to use expression language to 
> create a file filter regex like:
> .**${now():minus(86400000):format('yyyyMMdd')}.**



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to