docs/sources/visualize/grafana.md
Grafana Loki does not have its own user interface. Most users install Grafana in order to visualize their log data. Grafana versions after 6.3 have built-in support for Grafana Loki and LogQL.
There are several different options for how to visualize your log data in Grafana:
Grafana Logs Drilldown lets you automatically visualize and explore logs. Logs Drilldown makes assumptions about what data you might want to see to help you quickly get started viewing your logs without having to learn LogQL and write queries.
If you are a Grafana Cloud user, you can access Logs Drilldown from the Grafana Cloud main navigation menu: select Drilldown > Logs.
If you are an open source or Grafana Enterprise Logs user, you can install the Logs Drilldown plugin. For more information, refer to the Logs Drilldown documentation.
{{< admonition type="note" >}} Starting with Grafana v11.3, the plugin for the Logs Drilldown app is installed in Grafana by default. {{< /admonition >}}
{{< docs/learning-paths title="Explore logs using Logs Drilldown" url="https://grafana.com/docs/learning-paths/drilldown-logs/" >}}
{{< admonition type="tip" >}}
There is a link to Grafana Explore available on every panel in Logs Drilldown. Click the menu icon (three stacked dots) to access the link to Explore.
{{< /admonition >}}
Grafana Explore helps you build and iterate on a LogQL query outside of the dashboard user interface. If you just want to explore your data and do not want to create a dashboard, then Explore makes this much easier.
admin.http://localhost:3100.
When running with docker-compose or Kubernetes, the address is likely http://loki:3100.
When running Grafana (with Docker) and trying to connect to a locally built Loki instance, the address (for the URL field) is:
On Mac: docker.for.mac.localhost
On Windows: docker.for.win.localhostX-Scope-OrgID header. Click the + Add header button under HTTP headers, enter X-Scope-OrgID in the Header field, and your tenant ID in the Value field. Multi-tenancy is enabled by default when running Loki with Helm on Kubernetes.If you would like to see an example of this live, you can try Grafana Play's Explore feature.
Learn more about the Grafana Explore feature in the Grafana documentation.
The Loki mixin provides a set of Grafana dashboards, Prometheus recording rules and alerts for monitoring Loki itself. For instructions on how to install the Loki mixins, refer to the installation topic.
{{< docs/play title="Loki Example Grafana Dashboard" url="https://play.grafana.org/d/T512JVH7z/" >}}
Because Loki can be used as a built-in data source, you can use LogQL queries based on that data source to build complex visualizations that persist on Grafana dashboards.
To configure Loki as a data source via provisioning, refer to the documentation for Loki data source.
Read more about how to build Grafana Dashboards in build your first dashboard.
{{< docs/learning-paths title="Visualize logs in a Grafana Cloud dashboard" url="https://grafana.com/docs/learning-paths/visualization-logs/" >}}