Skip to main content

elasticTransport

@abimongo/core v1.1.4


@abimongo/core / elasticTransport

Variable: elasticTransport

const elasticTransport: RemoteTransporter

Defined in: core/src/utils/logHelpers.ts:61

Create a resilient transporter for elasticsearch logs. This transporter will retry failed log writes with exponential backoff.

Param

The URL of the Elasticsearch instance.

Param

The name of the Elasticsearch index to write logs to.

Example

const elasticTransport = createElasticTransport('http://localhost:9200', 'abimongo-logs');