Grafana Loki
Loki output plugin
Overview
Fluentd output plugin to ship logs to a Loki server. More info at https://grafana.com/docs/loki/latest/clients/fluentd/
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)
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
Default: -
password (*secret.Secret, optional)
Specify password if the Loki server requires authentication. Secret
Default: -
cert (*secret.Secret, optional)
TLS: parameters for presenting a client certificate Secret
Default: -
key (*secret.Secret, optional)
TLS: parameters for presenting a client certificate Secret
Default: -
ca_cert (*secret.Secret, optional)
TLS: CA certificate file for server certificate verification Secret
Default: -
insecure_tls (*bool, optional)
TLS: disable server certificate verification
Default: false
tenant (string, optional)
Loki is a multi-tenant log storage platform and all requests sent must include a tenant.
Default: -
labels (Label, optional)
Set of labels to include with every Loki stream.
Default: -
extra_labels (map[string]string, optional)
Set of extra labels to include with every Loki stream.
Default: -
line_format (string, optional)
Format to use when flattening the record to a log line: json, key_value (default: key_value)
Default: json
extract_kubernetes_labels (*bool, optional)
Extract kubernetes labels as loki labels
Default: false
remove_keys ([]string, optional)
Comma separated list of needless record keys to remove
Default: []
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
configure_kubernetes_labels (*bool, optional)
Configure Kubernetes metadata in a Prometheus like format
Default: false
include_thread_label (*bool, optional)
whether to include the fluentd_thread label when multiple threads are used for flushing.
Default: true
buffer (*Buffer, optional)
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 warning message and increases metric fluentd_output_status_slow_flush_count.
Default: -