Index overwritten by another index

I guess the issue here is, that you run 1 Logstash instance with both configs. This would merge your config files to one big pipeline.
What you want to do, is configure Logstash to run with multiple pipelines, one for each config file.