Encounter a problem when write two config file

In the directory "conf.d",I wrote two config file --f1 an f2.when I write data to f1's input and the f2's output recive the data too.How can I avoid this?I expect that the two config file have no effect on each other.

Your assumption was incorrect. All configuration files are basically concatenated and all filters and outputs will apply to all inputs unless you add conditionals to select which events to send where.

thank you .