This is documentation for the next version of Loki. For the latest stable release, go to the latest version.
Loki in Grafana
- Log into your Grafana instance. If this is your first time running
Grafana, the username and password are both defaulted to
- In Grafana, go to
Data Sourcesvia the cog icon on the left sidebar.
- Click the big + Add data source button.
- Choose Loki from the list.
- The http URL field should be the address of your Loki server. For example,
when running locally or with Docker using port mapping, the address is
http://localhost:3100. When running with docker-compose or Kubernetes, the address is likely
- To see the logs, click Explore on the sidebar, select the Loki datasource in the top-left dropdown, and then choose a log stream using the Log labels button.
- Learn more about querying by reading about Loki’s query language LogQL.
Read more about Grafana’s Explore feature in the Grafana documentation and on how to search and filter for logs with Loki.
To configure Loki as a datasource via provisioning, see Configuring Grafana via Provisioning. Set the URL in the provisioning.
Related Loki resources
Getting started with logging and Grafana Loki (APAC timezone)
Join this webinar to learn why correlating metrics and logs is critical across the development lifecycle, and how Loki helps reduce logging costs and operations overhead.
Logging with Loki: Essential configuration settings
This webinar focuses on Grafana Loki configuration including agents Promtail and Docker; the Loki server; and Loki storage for popular backends.