Skip to main content

Log Exporter Reference

The Log Exporter collects the logs of everything that runs in an environment and sends them where you want them: your own Elasticsearch, Splunk, Datadog, a Kafka topic, or any HTTP endpoint.

It works with three things:

What it is
The exporterWhat collects the logs of the environment
DestinationsWhere logs are sent
FlowsWhich logs go to which destinations

Rationale: Why export logs.

Exporter configuration​

Open the environment, go to Logging, and configure the service.

FieldWhat it isDefault
Buffer StorageWhere logs wait before being sent. Persistent survives restarts; Temporary is faster, but what was waiting is lost on restart.Temporary
Buffer Disk SizeWith persistent storage, the space reserved for waiting logs. Size it to hold a few minutes of logs at the busiest time.10Gi
Parse JSON LogsRead logs written as JSON into separate fields, which makes them easier to search.On
Keep Original MessageAlso keep the message as it was written, beside the fields. Useful when working out a parsing problem.Off

Then click Apply on the environment.

Log Destinations​

A destination is a place logs are sent to. Create as many as you need.

DestinationWhat you give
DatadogYour API key and the intake host, http-intake.logs.datadoghq.eu for the EU region
ElasticsearchHost, port (9200) and protocol
OpenSearchHost, port (9200) and protocol
Grafana LokiThe address of your Loki instance
SplunkHost and port (8088) of the HTTP Event Collector, and its token
KafkaThe brokers, the topic and the message format
OpenObserveThe ingest address of your instance
HTTP endpointAny address that receives logs over HTTP

Every destination also has a Flush Interval — how often waiting logs are sent, 2 minutes by default. A lower value shows logs sooner and makes more calls.

The environment also has a default destination: the log store of the platform itself, with nothing to configure.

Destination options​

Once created, a destination can be given options. Which ones depends on the destination.

OptionWhat it setsFor
AuthenticationThe credentials, from a stored configurationElasticsearch, OpenSearch, Loki, HTTP, Kafka
TLSEncryption of the connection and how certificates are verifiedElasticsearch, OpenSearch, Loki, HTTP, Kafka, Splunk
BufferHow logs are grouped before being sentDatadog, Elasticsearch, OpenSearch, Loki, HTTP, Kafka, Splunk
IndexThe index logs are written to, and its naming by dateElasticsearch, OpenSearch
AWSRequest signing for Amazon OpenSearch Service, in place of authenticationOpenSearch
LabelsThe labels attached to log streamsLoki
TaggingService, source and custom tagsDatadog
RoutingIndex, source and source type of eventsSplunk
HeadersHeaders sent with each requestHTTP
SettingsTransport, compression or delivery optionsDatadog, HTTP, Kafka

Credentials are stored configurations. See the templates for log destinations.

Credentials of a destination are stored configurations

An API key or a password is never typed into the destination itself: it is chosen among the configurations of Secret Manager, which must be made available to the environment.

Log Flows​

A flow says which logs go where.

FieldWhat it is
Application SelectorThe applications whose logs are collected, chosen by their labels. Leave it empty to collect the logs of every application.
Output ReferencesThe destinations the logs are sent to. At least one.

A flow can also change the logs on their way:

OptionWhat it does
ParserReads fields out of the message: JSON, Nginx, Apache, Syslog, or a pattern of your own.
FilterKeeps only the entries where a field matches a pattern, or drops those that match.
EnrichAdds fields to every entry (environment=production for example) or removes some.

Resource Settings​

Two settings give the exporter more or less to run on.

SettingWhat it isDefaults
AggregatorWhat gathers the logs and sends them to the destinations.100m / 128Mi requested, 500m / 512Mi at most
CollectorWhat reads the logs on each node.50m / 64Mi requested, 200m / 128Mi at most

Raise the aggregator's when logs are delayed at busy times.

Behavior and limits​

  • Logs go to a destination only if a flow sends them there.
  • With temporary buffer storage, logs waiting to be sent when the exporter restarts are lost. Choose persistent when no log may be missed.