Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sending logs to grafana loki hosted on grafana cloud #377

Closed
goofiw opened this issue Oct 27, 2022 · 2 comments
Closed

Sending logs to grafana loki hosted on grafana cloud #377

goofiw opened this issue Oct 27, 2022 · 2 comments
Labels
kind/feature New feature or request
Milestone

Comments

@goofiw
Copy link

goofiw commented Oct 27, 2022

Motivation

I'm trying to send event logs to grafana loki hosted by grafana cloud

Feature

Add options for api key and user to loki configuration. In grafana cloud, there's a generic host (in our case https://logs-prod-us-central1.grafana.net), user and password (which is a generated apikey like password)

From the current settings, it is unclear how to provide the authentication information.

Alternatives

Additional context

Most examples I came across were using grafana loki within the same kubernetes cluster as falco

@goofiw goofiw added the kind/feature New feature or request label Oct 27, 2022
@Issif Issif added this to the 2.27.0 milestone Oct 28, 2022
@Issif
Copy link
Member

Issif commented Oct 28, 2022

I'm off this week, I'll try to take a look at this asap.

@Issif
Copy link
Member

Issif commented Nov 2, 2022

Ok I see, for now, the Loki output doesn't work with Grafana Logs, I saw how to change that:

The same example query for Grafana Enterprise Logs uses Basic Authentication and specifies the tenant names as a user. The tenant names are separated by the pipe (|) character. The password in this example is an access policy token that has been defined in the API_TOKEN environment variable:

curl -u "Tenant1|Tenant2|Tenant3:$API_TOKEN" \
  -G -s "http://localhost:3100/loki/api/v1/query" \
  --data-urlencode \
  'query=sum(rate({job="varlogs"}[10m])) by (level)' | jq

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature New feature or request
Projects
Status: Done
Development

No branches or pull requests

2 participants