-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't get data cvs. #40
Comments
" is wrong. |
@marevol what do you mean? btw, if I do: I don't see any error, then open file data.csv and see:
elasticsearch version: 5.2.2 |
It's a general problem on shell, not elasticsearch and plugin problem.
It seems that a plugin installation is failed.
Use dataformat 5.2.x. |
@marevol |
OK, I think dataformat don't understand aggregations. I decode my query:
to
and try get csv: curl -o /tmp/data.csv -XGET "http://localhost:9200/my-index/_data?format=csv&source=%7B%22size%2.....my_decode_query......7D%7D%7D%7D" So, data.csv empty... my query returns json like format:
dataformat don't understand it. |
If I try to send the query I get the following exception: I use ElasticSearch 5.5.1 and the plugin for 5.3.0 |
To use elasticsearch 5.5.x, you need to install plugin 5.5.x. |
Hi,
If I do:
curl -o /tmp/data.txt - XGET 'http://localhost:9200/my-index/_search' -d '{"size":0,"query":{"bool":{"must":[{"query_string":{"analyze_wildcard":true,"query":"*"}},{"range":{"@timestamp":{"gte":1497538800000,"lte":1500213705347,"format":"epoch_millis"}}}],"must_not":[]}},"_source":{"excludes":[]},"aggs":{"2":{"date_histogram":{"field":"@timestamp","interval":"1h","time_zone":"Europe","min_doc_count":1}}}}'
I get /tmp/data.txt (data has json format) but if I do:
curl -o /tmp/data.csv -XGET "http://localhost:9200/my-index/_data?format=csv&source={"size":0,"query":{"bool":{"must":[{"query_string":{"analyze_wildcard":true,"query":"*"}},{"range":{"@timestamp":{"gte":1497538800000,"lte":1500213705347,"format":"epoch_millis"}}}],"must_not":[]}},"_source":{"excludes":[]},"aggs":{"2":{"date_histogram":{"field":"@timestamp","interval":"1h","time_zone":"Europe","min_doc_count":1}}}}"
I have error:
curl: (3) [globbing] nested braces not supported at pos 67
Where am I wrong? This query successfully working on kibana(dev-tools):
GET my-index/_search {query...}
The text was updated successfully, but these errors were encountered: