skip to content
Alvin Lucillo

Send a basic log to lgtm collector

/ 1 min read

If you want to look for the Loki log, like the Hello from Go! log from yesterday, go to locahost:3000, the Grafana dashboard. Click Explorer, and in the dropdown, select Loki. Click “Add query”, then at the upper-right corner, switch from “Builder” to “Code” so you can enter a query like {service_name="hello-go"}. Doing so will allow you to see the Go message from yesterday. Just make sure you run the Go program first.