Output data to different sources using filebeat

Is it possible to configure a filebeat where data from modules is output directly to elasticsearch,
and data from prospectors are output in the logstash?

No, Beats only support a single output. You would need to run two separate instance to achieve this. Typically though I would recommend sending to Logstash and then routing the data from there.

I understood.
Thanks for the answer.