gogstash icon indicating copy to clipboard operation
gogstash copied to clipboard

Loki and org_id

Open KVInventoR opened this issue 2 years ago • 1 comments
trafficstars

Hi everyone, could you please help me find a right answer:

How can I define org_id for loki? If Loki runs in multi tenancy mode 2023/08/26 20:17:23 outputloki.go:177 [error] output loki startCode: 401 error:no org id

https://grafana.com/docs/loki/latest/operations/multi-tenancy/

output:
  - type: stdout
    codec: json

  - type: loki
    urls:
      - "http://IP:8080/loki/api/v1/push"
    auth: "X-Scope-OrgID:Logs"
    

KVInventoR avatar Aug 26 '23 20:08 KVInventoR

According to the implemented codes by yuangu, the config of X-Scope-OrgID is not yet supported. PR is welcomed.

tsaikd avatar Aug 27 '23 00:08 tsaikd