I have a spoolDir flume agent configured and the source path contains ":"
colon character in it which results in the below exception while writing in
to HDFS.

java.lang.IllegalArgumentException: Pathname
from hdfs://slc15zcc:8020/TPA_PAAS/*20180626.01:21:14*
/IDCS-CertificateAnalysis.csv.1530084044272.tmp* is not a valid DFS


What's the best way to work around this issue?

1) Is there a flume interceptor which I can configure to edit the
baseNameHeader value in the header?

2) Should I build a custom interceptor to remove/replace the colon
character in the basenameHeader?

Thanks & Regards,
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB