You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@flume.apache.org by "yingnan.ma" <yi...@ipinyou.com> on 2012/11/26 04:47:05 UTC

fileregex in sink

I want to use fileregex to match the following file 

3.ttb.uned.log.201112341205
C.ttb.ed.log.201111230803 

and I use the tailDir( "/data/test/", "\w+\.adx\.\w+\.log\.\w+", true, 1 ) 

But It can not work, because the regex argument requires java style escaping of \ and \".

Now , I donot know how to address the problem, Any idea would be usefull, Thank you for you help.