buffer / thug

Python low-interaction honeyclient
GNU General Public License v2.0
995 stars 204 forks source link

Modify ElasticSearch export functionality in ElasticSearch.py to be compatible with ES >= 7.0 #312

Closed jgru closed 3 years ago

jgru commented 3 years ago

This fix modifies lines 88 and 89 in ElasticSearch.py to adjust the export functionality to be compatible with ES >= 7.0 Tested with ElasticSearch 7.10.0

Note: The keyword argument doc_type is decrecated in ES 7.0 (see https://elasticsearch-py.readthedocs.io/en/7.10.0/api.html#elasticsearch.Elasticsearch.index) Furthermore the result dict returned from index()-function, does not contain the key 'created' anymore. (See https://www.elastic.co/guide/en/elasticsearch/reference/7.10/docs-index_.html)