Comments (15)
My apologies, but es2csv currently supports only Elasticsearch 2.x and 5.x.
You can try to use es2csv-2.4.4 or downgrade to oldest one.
from es2csv.
Try: es2csv -i enron_test -q '*' -o database.csv
from es2csv.
from es2csv.
Please use python 2.7.
from es2csv.
I'm using python 2.7
python
Python 2.7.13 (default, Jan 19 2017, 14:48:08)
[GCC 6.3.0 20170118] on linux2
Type "help", "copyright", "credits" or "license" for more information.
from es2csv.
File "/usr/local/lib/python3.5/dist-packages/es2csv.py", line 237, in
Looks like pip is not.
from es2csv.
from es2csv.
How to uninstall and install again this utility?
from es2csv.
How can I use python 2.7 with es2csv?
Use pip which using python 2.7 for installation es2csv.
How to uninstall and install again this utility?
pip uninstall es2csv
pip install es2csv
from es2csv.
I'm having the same problem, but im using python 2.7:
Run query [ ] [0/1398742] [ 0%] [0:00:00] [ETA: --:--:--] [ 0.0 s/docs]Traceback (most recent call last):
File "/usr/local/bin/es2csv", line 11, in <module>
load_entry_point('es2csv==5.2.1', 'console_scripts', 'es2csv')()
File "/Library/Python/2.7/site-packages/es2csv.py", line 283, in main
es.search_query()
File "/Library/Python/2.7/site-packages/es2csv.py", line 40, in f_retry
return f(*args, **kwargs)
File "/Library/Python/2.7/site-packages/es2csv.py", line 177, in search_query
res = next_scroll(res['_scroll_id'])
File "/Library/Python/2.7/site-packages/es2csv.py", line 40, in f_retry
return f(*args, **kwargs)
File "/Library/Python/2.7/site-packages/es2csv.py", line 93, in next_scroll
return self.es_conn.scroll(scroll=self.scroll_time, scroll_id=scroll_id)
File "/Library/Python/2.7/site-packages/elasticsearch/client/utils.py", line 73, in _wrapped
return func(*args, params=params, **kwargs)
File "/Library/Python/2.7/site-packages/elasticsearch/client/__init__.py", line 955, in scroll
params=params, body=body)
File "/Library/Python/2.7/site-packages/elasticsearch/transport.py", line 318, in perform_request
status, headers, data = connection.perform_request(method, url, params, body, ignore=ignore, timeout=timeout)
File "/Library/Python/2.7/site-packages/elasticsearch/connection/http_urllib3.py", line 128, in perform_request
self._raise_error(response.status, raw_data)
File "/Library/Python/2.7/site-packages/elasticsearch/connection/base.py", line 122, in _raise_error
raise HTTP_EXCEPTIONS.get(status_code, TransportError)(status_code, error_message, additional_info)
elasticsearch.exceptions.RequestError```
from es2csv.
@matthewbyrne Your request hit 1398742 results.
@RicoSpm did you fix your problem?
from es2csv.
@taraslayshchuk Yup. Proud of that. Is there a limit?
from es2csv.
@matthewbyrne No, please provide more information: OS, python version, es2csv version, elasticsearch version and run arguments. And it will be better to open a separate issue.
from es2csv.
Im running this dockerised ELK stack:
https://hub.docker.com/r/sebp/elk/
Using this tag version:
ELK: E1L1K4: Elasticsearch 1.7.3, Logstash 1.5.5, and Kibana 4.1.2.
OS: Running Enterprise Linux 7
Python version: Python 2.7.6
es2csv version: es2csv 5.2.1
Command:
es2csv -f field1 field2 field3 -i logstash-2017.06.19 -q 'type: nginx' -o database.csv>
from es2csv.
That looks to have got me over that hurdle.
pip install -I es2csv==2.4.4
to install the older version, and the query is running at the moment. Pulling down 5.4million records. Fun.
from es2csv.
Related Issues (20)
- 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
- Updated Fork
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.