Problem with parsing data from two files inputs (csv and syslog)

At the moment, all config files are merged into a single pipeline by Logstash, which requires the use of conditionals. This will however be changing the upcoming Logstash 6.0 with the ability to define multiple pipelines within a single Logstash instance, as described in this blog post.