ElasticSearchBackend
OpenSearch wrapper
- class DIRAC.Resources.LogBackends.ElasticSearchBackend.ElasticSearchBackend(backendParams=None, backendFilters=None)
Bases:
AbstractBackendElasticsearchBackend is used to create an abstraction of the handler and the formatter concepts from logging. Here, we have a CMRESHandler which is part of an external library named ‘cmreslogging’ based on ‘logging’. CMRESHandler is a specific handler created to send log records to an OpenSearch DB. It does not need a Formatter object.
- __init__(backendParams=None, backendFilters=None)
CMRESHandler needs, at least, a hostname, a username, a password, a port and a specific index from the OpenSearch DB to send log records.
- getHandler()
- Returns:
the handler