How to set the logging level for the elasticsearch library differently to my own logging?
The following two lines have done the trick for me to suppress excessive logging from the es library.
es_logger = logging.getLogger('elasticsearch')
es_logger.setLevel(logging.WARNING)
I have been using this:
from elasticsearch import logger as es_logger
LOGLEVEL = 50
es_logger.setLevel(LOGLEVEL)