To query and display your logs you need to configure your Loki to be a datasource in your Grafana.
To configure the datasource via provisioning see [Configuring Grafana via Provisioning](http://docs.grafana.org/features/datasources/loki/#configure-the-datasource-with-provisioning).
_Note_: Querying your logs without Grafana is possible by using [logcli](./logcli.md).
> _Note_: Querying your logs without Grafana is possible by using [logcli](./logcli.md).
## Configuring the Loki Datasource in Grafana
...
...
@@ -19,6 +17,8 @@ Grafana ships with built-in support for Loki as part of its [latest release (6.0
Read more about the Explore feature in the [Grafana docs](http://docs.grafana.org/features/explore) and on how to search and filter logs with Loki.
> To configure the datasource via provisioning see [Configuring Grafana via Provisioning](http://docs.grafana.org/features/datasources/loki/#configure-the-datasource-with-provisioning) and make sure to adjust the URL similarly as shown above.
## Searching with Labels and Distributed Grep
A log query consists of two parts: **log stream selector**, and a **search expression**. For performance reasons you need to start by choosing a log stream by selecting a log label.