Grafana Loki
Loki output plugin
Overview
Fluentd output plugin to ship logs to a Loki server. For details, see https://grafana.com/docs/loki/latest/clients/fluentd/.
For a detailed example, see 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
buffer (*Buffer, optional)
ca_cert (*secret.Secret, optional)
TLS: CA certificate file for server certificate verification Secret
cert (*secret.Secret, optional)
TLS: parameters for presenting a client certificate Secret
configure_kubernetes_labels (*bool, optional)
Configure Kubernetes metadata in a Prometheus like format
Default: false
drop_single_key (*bool, optional)
If a record only has 1 key, then just set the log line to the value and discard the key.
Default: false
extra_labels (map[string]string, optional)
Set of extra labels to include with every Loki stream.
extract_kubernetes_labels (*bool, optional)
Extract kubernetes labels as loki labels
Default: false
include_thread_label (*bool, optional)
whether to include the fluentd_thread label when multiple threads are used for flushing.
Default: true
insecure_tls (*bool, optional)
TLS: disable server certificate verification
Default: false
key (*secret.Secret, optional)
TLS: parameters for presenting a client certificate Secret
labels (Label, optional)
Set of labels to include with every Loki stream.
line_format (string, optional)
Format to use when flattening the record to a log line: json, key_value (default: key_value)
Default: json
password (*secret.Secret, optional)
Specify password if the Loki server requires authentication. Secret
remove_keys ([]string, optional)
Comma separated list of needless record keys to remove
Default: []
slow_flush_log_threshold (string, optional)
The threshold for chunk flush performance check. Parameter type is float, not time, default: 20.0 (seconds) If chunk flush takes longer time than this threshold, Fluentd logs a warning message and increases the fluentd_output_status_slow_flush_count
metric.
tenant (string, optional)
Loki is a multi-tenant log storage platform and all requests sent must include a tenant.
url (string, optional)
The url of the Loki server to send logs to.
Default: https://logs-us-west1.grafana.net
username (*secret.Secret, optional)
Specify a username if the Loki server requires authentication. Secret