I don't think you can get logstash to produce that array. I would switch to the json_lines codec which gets you one item per line, then add the commas and square brackets outside of logstash.
oh i never thought this can be that challenging. I thought ES is a json storage and it should have capability to produce json as a output for all the document in a array
This was a surprising element for me. or we are missing something?
Is this not possible with ruby filter as well,please suggest..
Which it does. You might be better off reading the documents from elasticsearch using curl. logstash adds no value here, in fact it removes it, because it breaks up the array of results that elasticsearch returns. If you need help with submitting a query using curl I would ask in the elasticsearch forum.
curl command works, but it will flush out only 10 K records, i am dealing with millions of records. Then i will have to enable the Scroll API which is very costly and not a good solution.
Now i am stuck again with no solution...i feel ES input is really of no use.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.