Receiving from different inputs on same logstash instance

I am looking to get an ID from RabbitMQ and use those IDs to query an Elasticsearch Input.
Is it possible to do this all in one single logstash config?

No, sorry.