Stephen,

The regex that you have there in interpreted by NiFi as "the filename must 
consist of 3 characters, beginning with a c and ending with an r". What you want
is "the filename must begin with a c, followed by any character, followed by an 
r, followed by anything else." So you'd want "c.r.*" I do believe.

Thanks
-Mark


> On May 28, 2019, at 11:44 AM, Stephen Greszczyszyn <sgres...@gmail.com> wrote:
> 
> Hi there,
> 
> I'm running NiFi in docker.  I'm trying to enable flow debugs and also to 
> determine if NiFi can actually see in my data directory path.  I'm trying to 
> use a simple recursive list file processor to find the files based on a 
> regular expression "^c.r".  
> 
> I can docker exec into the container and can see that the nifi container can 
> "see" into my filepath OK:
> 
> nifi@4f614c6c67c4:/data/sftp/cdr$ ls -1t | head -5 | egrep '^c.r'
> cdr_AP2-HKG-CCP-UCM_12_201905281539_35251
> cdr_AP2-HKG-CCP-UCM_06_201905281539_297892
> cmr_AP2-HKG-CCP-UCM_06_201905281539_297892
> cdr_AP9-SYD-UCCE-UCM_05_201905281539_200435
> cdr_AP2-HKG-CCP-UCM_11_201905281539_98483
> 
> However, I can't get the ListFile processor to work and find those files.  
> Any ideas on debugging strategies?
> 
> Thanks.

Reply via email to