How do I route logs that coming through beats?

In kafka output there is an option to have the topic either globally per beat are based on the document type. For filebeata configure document_type in the prospector and set use_type: true.