It turns out that filebeat.yml can send the output to elasticsearch or logstash.
Is it possible to change the destination depending on the logs collected by filebeat?
For example, is it possible to send general logs that can be configured in modules (ex. syslog, nginx) directly to elasticsearch, while original logs are sent to logstash, adjusted by filter, and then sent to elasticsearch?