The loki output plugin, allows to ingest your records into a Loki service.
| 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 |
| 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 |
| tls | *plugins.TLS |