Skip to content

Latest commit

 

History

History
21 lines (18 loc) · 2.14 KB

File metadata and controls

21 lines (18 loc) · 2.14 KB

Loki

The loki output plugin, allows to ingest your records into a Loki service.
For full documentation, refer to https://docs.fluentbit.io/manual/pipeline/outputs/loki

Field Description Scheme
host Loki hostname or IP address. string
port Loki TCP port *int32
httpUser Set HTTP basic authentication user name. *plugins.Secret
httpPassword Password for user defined in HTTP_User Set HTTP basic authentication password *plugins.Secret
tenantID Tenant ID used by default to push logs to Loki. If omitted or empty it assumes Loki is running in single-tenant mode and no X-Scope-OrgID header is sent. *plugins.Secret
labels Stream labels for API request. It can be multiple comma separated of strings specifying key=value pairs. In addition to fixed parameters, it also allows to add custom record keys (similar to label_keys property). []string
labelKeys Optional list of record keys that will be placed as stream labels. This configuration property is for records key only. []string
labelMapPath Specify the label map file path. The file defines how to extract labels from each record. string
removeKeys Optional list of keys to remove. []string
dropSingleKey If set to true and after extracting labels only a single key remains, the log line sent to Loki will be the value of that key in line_format. string
lineFormat Format to use when flattening the record to a log line. Valid values are json or key_value. If set to json, the log line sent to Loki will be the Fluent Bit record dumped as JSON. If set to key_value, the log line will be each item in the record concatenated together (separated by a single space) in the format. string
autoKubernetesLabels If set to true, it will add all Kubernetes labels to the Stream labels. string
tenantIDKey Specify the name of the key from the original record that contains the Tenant ID. The value of the key is set as X-Scope-OrgID of HTTP header. It is useful to set Tenant ID dynamically. string
tls *plugins.TLS