cmanaha / python-elasticsearch-logger

Python Elasticsearch handler for the standard python logging framework
Other
232 stars 116 forks source link

Specifying types in bulk requests is deprecated #76

Open luke-han opened 4 years ago

luke-han commented 4 years ago

I am using CMRESHandler with ES 7.5.1.

From ES 7, type is deprecated

When CMRESHandler sends logs with bulk operation, [types removal] Specifying types in bulk requests is deprecated. warning is printed.

Forcing to set es_doc_type is cause of this issue.

This line may need to be deleted.

mkhadher commented 2 years ago

This's fixed in fork https://github.com/mkhadher/python-elasticsearch-logger

elijahxb commented 2 years ago

Maybe, we could solve this problem by passing a None value to type field es_doc_type just like this: CMRESHandler(xxx=xxx, es_doc_type=None)

drumadrian commented 2 years ago

Hi @everyone !

Hey @mkhadher

I would like to meet and talk about the python-elasticsearch-logger that we all use. I think we can merge all of the best features and update PyPi. I work at AWS and talked with Carlos about this.

Python maintainer,

Adrian Drummond adrian.drummond@gmail.com adrian@adriandrummond.com

constructor-igor commented 1 year ago

Hi. please, could you provide a solution for the issue?

drumadrian commented 1 year ago

I should have done this by now but I switched jobs and I am going to prioritize this in 2023