Guides on setting up Grafana agent to collect logs?


I have a linux machine and I want to use Grafana Agent to collect logs from /var/log and upload it to Grafana Cloud using the Grafana Agent docker image.

Are there any guides or walkthroughs on how to achieve this?

Note: I’ve currently got the Grafana Agent docker image running and loading the config, but it doesn’t upload any logs.

I’ve succeeded to configure both docker and grafana agent successfully. It was a lot of steps since I’m fairly new to both linux/docker/grafana and yaml.

I’ve written a guide on how to configure Grafana Agent here: