Multiple logstash configs with different filters running at the same time

So how do you separate the pipelines? because right now I have two .. but the input from one is going to both indexes . and I have 4 pipeline workers