Loki output plugin 🔗︎

Overview 🔗︎

Fluentd output plugin to ship logs to a Loki server. More info at https://github.com/banzaicloud/fluent-plugin-kubernetes-loki

Example: Store Nginx Access Logs in Grafana Loki with Logging Operator

Example output configurations 🔗︎

spec:
  loki:
    url: http://loki:3100
    buffer:
      timekey: 1m
      timekey_wait: 30s
      timekey_use_utc: true

Configuration 🔗︎

Output Config 🔗︎

url (string, optional) {#output config-url} 🔗︎

The url of the Loki server to send logs to.

Default: https://logs-us-west1.grafana.net

username (*secret.Secret, optional) {#output config-username} 🔗︎

Specify a username if the Loki server requires authentication.
Secret

Default: -

password (*secret.Secret, optional) {#output config-password} 🔗︎

Specify password if the Loki server requires authentication.
Secret

Default: -

cert (*secret.Secret, optional) {#output config-cert} 🔗︎

TLS: parameters for presenting a client certificate
Secret

Default: -

key (*secret.Secret, optional) {#output config-key} 🔗︎

TLS: parameters for presenting a client certificate
Secret

Default: -

ca_cert (*secret.Secret, optional) {#output config-ca_cert} 🔗︎

TLS: CA certificate file for server certificate verification
Secret

Default: -

insecure_tls (*bool, optional) {#output config-insecure_tls} 🔗︎

TLS: disable server certificate verification

Default: false

tenant (string, optional) {#output config-tenant} 🔗︎

Loki is a multi-tenant log storage platform and all requests sent must include a tenant.

Default: -

labels (Label, optional) {#output config-labels} 🔗︎

Set of labels to include with every Loki stream.

Default: -

extra_labels (map[string]string, optional) {#output config-extra_labels} 🔗︎

Set of extra labels to include with every Loki stream.

Default: -

line_format (string, optional) {#output config-line_format} 🔗︎

Format to use when flattening the record to a log line: json, key_value (default: key_value)

Default: json

extract_kubernetes_labels (*bool, optional) {#output config-extract_kubernetes_labels} 🔗︎

Extract kubernetes labels as loki labels

Default: false

remove_keys ([]string, optional) {#output config-remove_keys} 🔗︎

Comma separated list of needless record keys to remove

Default: []

drop_single_key (*bool, optional) {#output config-drop_single_key} 🔗︎

If a record only has 1 key, then just set the log line to the value and discard the key.

Default: false

configure_kubernetes_labels (*bool, optional) {#output config-configure_kubernetes_labels} 🔗︎

Configure Kubernetes metadata in a Prometheus like format

Default: false

buffer (*Buffer, optional) {#output config-buffer} 🔗︎

Buffer

Default: -