python-elasticsearch-logger icon indicating copy to clipboard operation
python-elasticsearch-logger copied to clipboard

Specifying types in bulk requests is deprecated

Open luke-han opened this issue 4 years ago • 5 comments

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.

luke-han avatar Jul 08 '20 05:07 luke-han

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

mkhadher avatar Dec 08 '21 06:12 mkhadher

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)

elijahxb avatar May 04 '22 16:05 elijahxb

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 [email protected] [email protected]

drumadrian avatar May 04 '22 17:05 drumadrian

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

constructor-igor avatar Dec 04 '22 11:12 constructor-igor