Hello,
I'm new in elastic, I'm currently using Logstash 2.1.1 to retrieve data from ElasticSearch 1.4.4 to a CSV. I'm using the following configuration:
input {
elasticsearch {
hosts => "host"
index => "index"
scroll => "1m"
query => '{"query": {"bool":{"must":[{"match_all":{}}],"must_not":[],"should":[]}},"sort": ["objectId"]}'
}
}
output {
csv {
path => "output_Int.csv"
fields => ["objectId","name"]
}
}
How can I sort by objectId? Using this conf file I can't do it. Any suggestion?