How to get shards from elasticsearch to logstash

It's best if you keep your question to one topic. Feel free to update the original one with more info, like this config - How to get shards from elasticsearch to logstash?