79784419

Date: 2025-10-07 10:03:27
Score: 1
Natty:
Report link

To migrate logs from Stackdriver (now part of Google Cloud Operations Suite) to Grafana Loki, there is no direct export feature available. Instead, you need to set up a log shipping pipeline that collects logs from your environment and forwards them to Loki.

Recommended approach

Use a log collector like Fluentd or Promtail running in your Kubernetes cluster or environment:

Why this approach?

Steps overview

  1. Install Fluentd or Promtail using Kubernetes DaemonSet or on your nodes.
  2. Configure the log collector to read logs from standard sources (e.g., container stdout).
  3. Set the output to Loki's HTTP API or gRPC endpoint.
  4. Verify logs are appearing in Grafana Loki.

Additional tips

References

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: git2goo