---
title: "Install Loki data source plugin for Grafana"
description: "Like Prometheus but for logs. OSS logging solution from Grafana Labs. Loki data source plugin for Grafana by Grafana Labs."
---

> This is the Markdown version of https://grafana.com/grafana/plugins/loki/installation/

# Loki - Installation

## Installing Loki on Grafana Cloud

Install plugins directly in your Grafana Cloud instance, and we'll take care of keeping them up to date.

Note that it could take up to 1 minute to see the plugin show up in your Grafana.

Or automate it with the [Cloud API](https://grafana.com/docs/grafana/latest/developer-resources/api-reference/cloud-api/#grafana-plugins) or [Terraform](https://grafana.com/docs/grafana/latest/as-code/infrastructure-as-code/terraform/terraform-plugins/).

[Sign up for Grafana Cloud to install Loki.](https://grafana.com/auth/sign-up/create-user?pg=plugins&plcmt=loki)

For more information, visit the docs on [plugin installation](https://grafana.com/docs/grafana/latest/plugins/installation/).

## Installing on a local Grafana

For local instances, plugins are installed and updated via a simple CLI command. Plugins are not updated automatically, however you will be notified when updates are available right within your Grafana.

### Install via CLI

Use the grafana-cli tool to install Loki from the commandline:

```sh
grafana-cli plugins install loki
```

To install a specific version, add it to the command:

```sh
grafana-cli plugins install loki <version>
```

The plugin will be installed into your grafana plugins directory; the default is /var/lib/grafana/plugins. [More information on the cli tool](https://grafana.com/docs/grafana/latest/cli/).

### Download package

Alternatively, manually download the .zip file and unpack it into your grafana plugins directory.

- [darwin-amd64](https://grafana.com/api/plugins/loki/versions/13.2.5/download?os=darwin&arch=amd64)
- [darwin-arm64](https://grafana.com/api/plugins/loki/versions/13.2.5/download?os=darwin&arch=arm64)
- [linux-amd64](https://grafana.com/api/plugins/loki/versions/13.2.5/download?os=linux&arch=amd64)
- [linux-arm](https://grafana.com/api/plugins/loki/versions/13.2.5/download?os=linux&arch=arm)
- [linux-arm64](https://grafana.com/api/plugins/loki/versions/13.2.5/download?os=linux&arch=arm64)
- [windows-amd64](https://grafana.com/api/plugins/loki/versions/13.2.5/download?os=windows&arch=amd64)
- [any](https://grafana.com/api/plugins/loki/versions/13.2.5/download)
