- Documentation
- Learning Hub
- Section 3 of 3 Send logs
HTTP API for logs
Slide 2 of 4
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.
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.