Multiple inputs for Filebeat

Is it possible in Filebeat to have multiple log sources as inputs and indexed into different Elasticsearch indices?
Suppose I have apache access logs & mysql logs. How to enable filebeat modules for apache and mysql available in modules.d right from the filebeat.yml config file with the log paths specified?

Welcome to our community! :smiley:

When you enable the modules, they are automatically loaded. You don't need to configure anything extra in the filebeat.yml file.

Yes. You can use a process similar to this one from APM Storing APM data in custom/specific indices

Thanks for the help. The issue is resolved.