GCP Log Bucket logs to Loki

Viewed 22

In my current infrastructure I forward Stackdriver logs to the GCP Log Bucket. As the end goal, I would need to get them forwarded to Loki.

As the previous solution in other projects, I used Log Sink (Router) to push the Stackdriver logs to the Pub/Sub Topic directly (instead of pushing into the Log Bucket), from which Promtail was used to get the logs via a Subscription and push them to Loki.

I suppose I can create another Log Sink to get the logs from the Log Bucket, push them to PubSub, and deploy Promtail to take care of forwarding them to Loki.

I was wondering if there is a better solution to get logs from the Log Bucket to Loki.

Thank you in advance!

0 Answers
Related