Section 3 · Send logs

Sending logs via HTTP API to Grafana Cloud

Estimated time: 1 min

HTTP API for logs

The HTTP API is a REST endpoint for sending logs to Grafana Cloud Logs, and any HTTP client can use it. It’s a good fit for batch jobs, serverless functions, IoT devices, and CI/CD workflows where deploying a collector isn’t practical.

HTTP API logs flow

For stable, long-running systems, a collector like Grafana Alloy or Fluent Bit is often a better fit.

Considerations

  • Works with any HTTP client, sending logs as JSON. No SDK required.
  • A good fit for batch jobs, serverless, IoT, and CI/CD where you can’t run a collector.
  • You handle batching, retries, and buffering yourself, which a collector would otherwise manage.

Learn more

This method is walked through in a Grafana blog post.