I want to multiplex the flow in flume into several channels based on the file name. How can it done? I used spool directory source. I used a channel selector. It should multiply the flow by the event header. So how can I add the filename to the event header?