How to get shards from elasticsearch to logstash?

i need to convert shards(elasticsearch)data to logFile..

how to set logstash config file ?

ex)
input {
elasticsearch {
hosts => "ip : port"
??
}
output{
file{
path => ["/~~~path/~.log"]
}

plz help me...

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.