Comments (3)
Could you please provide more information about query? Did you try to use curl for your query? Maybe you have some mistakes there?
As I see you have been using version 1.0.2:
load_entry_point('es2csv==1.0.2', 'console_scripts', 'es2csv')()
Could you please update to 1.0.3 (this includes elasticsearch-py api upgrade from 1.4 to 2.3)?
Based on this stacktrace I am guessing that probably you have problem with your query in json:
File "/usr/local/lib/python2.7/dist-packages/es2csv.py", line 106, in search_query
query = json.loads(self.opts.query)
File "/usr/lib/python2.7/json/init.py", line 338, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
Looks like it fails when trying to parse json.
from es2csv.
OK, so is there possibility to export data from aggregations ? :)
from es2csv.
Hi Taras, i have a similar problem, please share the correct syntax to export data from aggregations. Thanks.
and btw.. your es2csv is great job! )
Update: please discard my question. In res['aggregations']
I can see output I needed,
from es2csv.
Related Issues (20)
- change delimiter HOT 1
- Error during pip install HOT 1
- es2ecv can not support encoding
- Export data from aggregation
- Possible to provide alternate delimiter for kibana style?
- change list to string in output HOT 1
- Argument for handling null values
- es2csv expectd one argument
- Unable to get the whole result
- Extending --auth to work with ES AWS IAM
- Passing a file name to -q is not called out in docs
- Getting "TypeError: unsupported operand type(s) for -: 'dict' and 'int'" HOT 1
- Getting unrecognized parameter: [_source_include] with Elastic 7.3 and using -f to specify fields HOT 1
- Index with a lot docs
- How to format a string
- Unable to escape newline characters while exporting to CSV HOT 1
- openSSL auth
- Non-ASCII characters not exported correctly HOT 3
- Chinese characters in the list are missing data
- It kept saying the error "No matching distribution found for es2csv" HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from es2csv.