-
Notifications
You must be signed in to change notification settings - Fork 192
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
Found 0 results #29
Comments
Try: |
It gives me this:
`Found 8 results
Run query
[#################################################################]
[8/8] [100%] [0:00:00] [Time: 0:00:00] [828.1 docs/s]
Write to csv
[####### ] [1/8] [
12%] [0:00:00] [ETA: 0:00:00] [ 7.2 Kilines/s]Traceback (most recent
call last):
File "/usr/local/bin/es2csv", line 9, in <module>
load_entry_point('es2csv==5.2.1', 'console_scripts', 'es2csv')()
File "/usr/local/lib/python3.5/dist-packages/es2csv.py", line 284, in main
es.write_to_csv()
File "/usr/local/lib/python3.5/dist-packages/es2csv.py", line 237, in
write_to_csv
line_dict_utf8 = {k: v.encode('utf8') if isinstance(v, unicode) else
v for k, v in line_as_dict.items()}
File "/usr/local/lib/python3.5/dist-packages/es2csv.py", line 237, in
<dictcomp>
line_dict_utf8 = {k: v.encode('utf8') if isinstance(v, unicode) else
v for k, v in line_as_dict.items()}
NameError: name 'unicode' is not defined`
…On 05/30/2017 03:01 PM, Taras Layshchuk wrote:
Try: |es2csv -i enron_test -q '*' -o database.csv|
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#29 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AVe1_cMq_mfz_90XC3YxxJSDM7POJgVUks5r_BM1gaJpZM4No_Nv>.
|
Please use python 2.7. |
I'm using python 2.7 python |
|
How can I use python 2.7 with es2csv?
…On May 30, 2017 17:18, "Taras Layshchuk" ***@***.***> wrote:
File "/usr/local/lib/python3.5/dist-packages/es2csv.py", line 237, in
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#29 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AVe1_Qa1B9zR2biiNcdsD7wZA54M-tk0ks5r_DNUgaJpZM4No_Nv>
.
|
How to uninstall and install again this utility? |
Use pip which using python 2.7 for installation es2csv.
pip uninstall es2csv |
I'm having the same problem, but im using python 2.7:
|
@matthewbyrne Your request hit 1398742 results. |
@taraslayshchuk Yup. Proud of that. Is there a limit? |
@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. |
Im running this dockerised ELK stack: |
My apologies, but es2csv currently supports only Elasticsearch 2.x and 5.x. |
That looks to have got me over that hurdle. |
I'm trying to use the command line utility
es2csv
to export data fromElasticsearch
into CSV file with the following syntax taken from github repo:es2csv -i logstash-2015-07-07 -q 'host: localhost' -o database.csv
So in my case I run the following command:
es2csv -i enron_test -q 'http://localhost:9200' -o database.csv
The problem is that this command returns Found 0 results, but I have some documents indexed into
Elasticsearch
database.Anyone can solve this problem? Am I wrong in the syntax of the command? Thank you guys
The text was updated successfully, but these errors were encountered: