Multiple prospectors not working under filebeat

It works if I have only one prospector with multiline codec however when I have more than one prospectors with each having multiline, none work. Am I doing something wrong here or is it expected behavior ?