Skip to content
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

import_testssl.sh_csv_to_ES.py #6

Open
KraT0s10k2 opened this issue Feb 7, 2018 · 2 comments · May be fixed by #7
Open

import_testssl.sh_csv_to_ES.py #6

KraT0s10k2 opened this issue Feb 7, 2018 · 2 comments · May be fixed by #7

Comments

@KraT0s10k2
Copy link

KraT0s10k2 commented Feb 7, 2018

Hello, i've a problem with import_testssl.sh_csv_to_ES.py:

./import_testssl.sh_csv_to_ES.py *.csv
Traceback (most recent call last):
File "./import_testssl.sh_csv_to_ES.py", line 5, in
from docTestssl import DocTestSSLResult
File "/test/testssl-scan/docTestssl.py", line 4, in
from elasticsearch_dsl import DocType, Object, Date, String, Integer, Short, Boolean
ImportError: cannot import name 'String'

Python 3.6.4
and all dependencies installed

Any idea?

Thanks for ur work

@Turtle-Sec
Copy link

I have the same problem, did you manage to solve it?

@Turtle-Sec
Copy link

Hi guys !
The index types changed in elasticsearch 5.0. The string type has been replaced by the text (analyzed) and keyword (not analyzed) types. You're specifying the text type, but keyword is what you want for no analysis.
So change String to Text or Keyword. Moreover, you're remove the parenthesis content. Example 😀 "signalgo": Keyword(fields={'raw': Keyword((index='not_analyzed'))}),

-> "signalgo": Keyword(fields={'raw': Keyword()}),

@C0FFEEC0FFEE C0FFEEC0FFEE linked a pull request Oct 23, 2018 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants