How to differentiate log files sended from filebeat?

You could try this Creating index depends on source

It is my solution as I do not like if statements in the output section.