https://grafana.com/docs/loki/latest/clients/logstash/
Set by export
or in a .env
file.
The url of the Loki server to send logs to. When sending data the push path need to also be provided e.g. http://localhost:3100/loki/api/v1/push.
If you want to send to GrafanaCloud you would use https://logs-prod-us-central1.grafana.net/loki/api/v1/push.
While logged in to your Grafana account, navigate to the Grafana Cloud Portal, which should be located at https://grafana.com/orgs/your-organization-name
, and complete the following steps.
If using the GrafanaLab’s hosted Loki, the username needs to be set to your instance/user id
Click the User Settings link in the top right and note your Username.
Obtain an API key, setting its Role to MetricsPublisher. If you want LogStream or an external KMS to manage the API key, configure a key pair that references the API key.