loki

loki sink is used to send data to Loki storage. Loki documentation can be found here

Example

  1. sink:
  2. type: loki
  3. url: "http://localhost:3100/loki/api/v1/push"

url

fieldtyperequireddefaultdescription
urlstringtrueapi for pushing loki

tenantId

fieldtyperequireddefaultdescription
tenantIdstringfalsetenant name used

timeout

fieldtyperequireddefaultdescription
timeouttime.Durationfalse30ssend timeout

entryLine

fieldtyperequireddefaultdescription
entryLinestringfalseThe log content sent to Loki. The default is the body of the Loggie event

Loki’s log data structure is roughly divided into label and main data. By default, Loggie will convert the meta-information field in the header into a label connected with _. In addition, it should be noted that since loki’s labels key does not support ., /, -, the keys containing these symbols in the header will be automatically converted into _ form.