Skip to content

logcli

Command-line interface for loki

It facilitates running LogQL queries against a Loki instance.

devops

https://github.com/grafana/loki

amd64 armhf arm64

Installation

1. Add WakeMeOps repository

curl -sSL https://raw.githubusercontent.com/upciti/wakemeops/main/assets/install_repository | sudo bash

2. Install logcli

sudo apt install logcli

Snippets

FROM wakemeops/minideb:bullseye

RUN install_packages \
    logcli=2.7.4*

USER 1001
- name: Install dependencies
  uses: upciti/wakemeops-action@v1
  with:
    packages: |
      logcli=2.7.4*

Download URLs

Version SHA256 Size (KB)
2.7.4 8365d9dc456623f05984a56d237bac8d724de0df7f47b85add0b295039b4d54d 11147
2.7.3 9e3c6b610d8ef303331c2d8a820ab23e8c7a0d344bf6af969a737ceec763b9ec 11188
2.7.2 2ab02f9b25e8da9bcc7747b13fdf7537c396b1cb520dcabd7054143c73bba111 11189
2.7.1 b0124a0af8c41f4501f89e31c8dc2fb933129f8ff8c5a09dc67e243d7fc08e2c 11187
2.7.0 99b34df28f32f83510bc4590dc5eec721c8c8d7819f7f80e63347366ff55fa66 11178
2.6.1 1366f082227a8201da0bcf17f43b300bcb6d859fa2899ecb2145310d4815a915 10395
2.6.0 372b9677a47129d5a2213ba4bf1f0ae9115f79297072df7c235f5eca2bd1a09f 10398
2.5.0 ddd962e43b7e00f6516e29ce201cb039c9ec90986439e01176e452599fdfeaee 10186
2.4.2 8be43ef0e7fc9eec5dc24192997e9b22809736aad0e72b99cc1ee3b02b787ffa 11459
2.3.0 af40c86d72a68abbbcf6ad44a214b76bcfd84a22becb9a1b4295225faec2e777 11196
Version SHA256 Size (KB)
2.7.4 40569164eceeaaf5d1dfc0d76fffe46d72695bc2794f232923e51299c4d9b5ac 9540
2.7.3 7027b41f78ed01215edc938a8c4286b9d86efdc66318173ab834943797bbe4f4 9605
2.7.2 dc060f0ef561699cf4af92cfee3e00a40e1402febc45e03605a7e2a5b422b52b 9604
2.7.1 eb57fed7889ca2e80947a60b53f8867a8ce46edd4b90b727f04bb2f30db1354e 9600
2.7.0 6c68b4ed337b1fbce7bbafe93454fe91f52ab54ad22caafeebf0046b1a5c2da6 9590
2.6.1 77bbd695cd2d2fb7f10ca65e7ea1daf1c10ad9892b555e1007b0b93ab30a369a 8909
2.6.0 f32ad06beb6d6555f9011c989e86b95794c74607e8e84ac91ea0275757bac813 8905
2.5.0 5ed7d060ead4c54a34546b2b0040ea771fdf948b3c0816facf3bd8d62b5ac1c5 8725
2.4.2 93dcbbfaf8b368177cc46690043aeacd3752f08d7e67aeb0dc2f5f5c60569442 9828
2.3.0 d981d38c996d5f0f7e5f1a197ceb64286c03f2f3624149ef4c3ca1a6cf997c85 9616
Version SHA256 Size (KB)
2.7.4 466026ef21c3fd1681e0ea7e58fca9b616bf7b1c32e0964a77d7db246d07de08 9770
2.7.3 f9ac3531084f8f93cc274530cfdd81f923d7470fd9a9a8e767356f76ceef1e6b 9813
2.7.2 32c8e63f6f29cf18f96183585a00bc42ef7f9c0182bdf4af4258abfb9d82ce95 9816
2.7.1 55b036eff9b8e5a0ec93b0052521d775c4096c16a233be8dbeeaa576d787bc9a 9811
2.7.0 d494a631b197ac140f7060a772524ff5a6115eda7a26e301678d2f7dde190850 9806
2.6.1 8b2e1bb66fd997ca7047cc7a0a785dfd5b7e9809d45c905feae1af352b0f4350 8976
2.6.0 8134e5dbc4c793f43aa8c627d6ad58f5dc3e18302324dcf3b6a416bb4d8cc9d8 8969
2.5.0 b09ae3726467bd2f2eb62f66d3e68e96a0bc6e6887a4c9e156c48c8304674a33 8783
2.4.2 4a7b07790ec6ace201038041531d85aa9041ef74863deeddab35a4aee4443999 9882
2.3.0 9ed4f3f23f612a7002691b935de5b75a0c2f6561c104c2cf98ecc9be738cce47 9666

Blueprints

Debian packages listed on this page are generated from op2deb YAML blueprints. Blueprints for logcli are versionned here.

Click here to see logcli ops2deb blueprints
https://github.com/upciti/wakemeops/blob/main/blueprints/devops/logcli/ops2deb.yml
name: logcli
matrix:
  versions:
    - 2.3.0
    - 2.4.2
    - 2.5.0
    - 2.6.0
    - 2.6.1
    - 2.7.0
    - 2.7.1
    - 2.7.2
    - 2.7.3
    - 2.7.4
  architectures:
    - amd64
    - arm64
    - armhf
homepage: https://github.com/grafana/loki
summary: command-line interface for loki
description: It facilitates running LogQL queries against a Loki instance.
fetch: https://github.com/grafana/loki/releases/download/v{{version}}/logcli-linux-{{goarch}}.zip
install:
  - logcli-linux-{{goarch}}:/usr/bin/logcli

The blueprint fetch keyword contains a URL template pointing to logcli releases. Downloaded files are locked in a lockfile versionned here.

Click here to see logcli release hashes
https://github.com/upciti/wakemeops/blob/main/blueprints/devops/logcli/ops2deb.lock.yml
- url: https://github.com/grafana/loki/releases/download/v2.3.0/logcli-linux-amd64.zip
  sha256: af0d748ac29da9f7d43d5e7675996ab331112024fa06d65e82996925f5882658
  timestamp: 2021-10-11 11:32:19+00:00
- url: https://github.com/grafana/loki/releases/download/v2.3.0/logcli-linux-arm.zip
  sha256: 4197493bff88789a6ad623fedecf5fab0f075c325c4a1c6ca640a0fc068efd21
  timestamp: 2023-03-06 12:16:10+00:00
- url: https://github.com/grafana/loki/releases/download/v2.3.0/logcli-linux-arm64.zip
  sha256: 4659f99e10924e4c5e2a4567f80806967c61000cc56ea67ce2b7984c3b8e6e83
  timestamp: 2023-03-06 12:16:10+00:00
- url: https://github.com/grafana/loki/releases/download/v2.4.2/logcli-linux-amd64.zip
  sha256: 68e5e281b4488ad49303cce972e194fe4e186cd519ed8a14db0c28316ad01e05
  timestamp: 2022-01-12 19:25:43+00:00
- url: https://github.com/grafana/loki/releases/download/v2.4.2/logcli-linux-arm.zip
  sha256: 362eb654400e33024c40d1a8f4595241f206fbcb39b8767fe7104cf301f8d325
  timestamp: 2022-01-30 16:22:16+00:00
- url: https://github.com/grafana/loki/releases/download/v2.4.2/logcli-linux-arm64.zip
  sha256: 38003a38b3ffab792fc1f00d68bf48fe440ec48ff0eb13206c37805e18d19eac
  timestamp: 2022-01-30 16:22:16+00:00
- url: https://github.com/grafana/loki/releases/download/v2.5.0/logcli-linux-amd64.zip
  sha256: ba034c3c56e121697a6bcec7a51b012e946a4f449a757a0ce594cd689c3e6648
  timestamp: 2022-04-11 20:28:57+00:00
- url: https://github.com/grafana/loki/releases/download/v2.5.0/logcli-linux-arm.zip
  sha256: 6db5b6108a5a9ba9f1a0be9244db3c83026506fa4b254e454644dbcf2bc209f6
  timestamp: 2022-04-11 20:28:57+00:00
- url: https://github.com/grafana/loki/releases/download/v2.5.0/logcli-linux-arm64.zip
  sha256: 61a35f694bdc75c7c9a4cfabc84edcd1ea827084c102a68d7130a5dadfb98f2f
  timestamp: 2022-04-11 20:28:57+00:00
- url: https://github.com/grafana/loki/releases/download/v2.6.0/logcli-linux-amd64.zip
  sha256: ec390ceb802b5295f8abbd3b14c46b90c86ee332a86e86de3e6ba782ae0cbda7
  timestamp: 2022-07-08 20:27:36+00:00
- url: https://github.com/grafana/loki/releases/download/v2.6.0/logcli-linux-arm.zip
  sha256: 4697cb472bffe73bf0a6b24cfea37b893c2d6e2904044b5a92781daa584fc35d
  timestamp: 2022-07-08 20:27:36+00:00
- url: https://github.com/grafana/loki/releases/download/v2.6.0/logcli-linux-arm64.zip
  sha256: 5972be4f9252cdfd9858e972aba53794d4854309a0087bb6299d6ba0a62362e1
  timestamp: 2022-07-08 20:27:36+00:00
- url: https://github.com/grafana/loki/releases/download/v2.6.1/logcli-linux-amd64.zip
  sha256: 8fe59a3b2f83c02920f29251a97ad1f6d4a83a8bbbc20097b73fb839d946cb75
  timestamp: 2022-07-18 14:46:23+00:00
- url: https://github.com/grafana/loki/releases/download/v2.6.1/logcli-linux-arm.zip
  sha256: 2ad747a3bba8bff77f03f7f38edb6c2f60d186a8e1bd395c425c0ed5d0676c1f
  timestamp: 2022-07-18 14:46:23+00:00
- url: https://github.com/grafana/loki/releases/download/v2.6.1/logcli-linux-arm64.zip
  sha256: e2c3cb728402087cadc120e190d617db8e0b39eb21bbff73f0d040e535822ca8
  timestamp: 2022-07-18 14:46:23+00:00
- url: https://github.com/grafana/loki/releases/download/v2.7.0/logcli-linux-amd64.zip
  sha256: 5df9bf01cead8852c21f0a9e9bf1801d0f41a83f4921395f9b70244778f7d712
  timestamp: 2022-11-11 04:56:54+00:00
- url: https://github.com/grafana/loki/releases/download/v2.7.0/logcli-linux-arm.zip
  sha256: f863117b680ccad04484d1bc41f5809a78b8c9017ff41f31cc557ff839a9568f
  timestamp: 2022-11-11 04:56:54+00:00
- url: https://github.com/grafana/loki/releases/download/v2.7.0/logcli-linux-arm64.zip
  sha256: ae36882a653f4b9708583e45fbf9cfd5ac70fa8fcdf676d53834d09179ff7dda
  timestamp: 2022-11-11 04:56:54+00:00
- url: https://github.com/grafana/loki/releases/download/v2.7.1/logcli-linux-amd64.zip
  sha256: 5b1033be27f8bb77cb4f5a836558b3f0719a989cd9add7c848800e4b2f59b394
  timestamp: 2022-12-10 02:34:26+00:00
- url: https://github.com/grafana/loki/releases/download/v2.7.1/logcli-linux-arm.zip
  sha256: a1fad7f5dbcf0f31c6e5e5a8bb48d23ac23fde0c00c5c1582717bd78343ee95c
  timestamp: 2022-12-10 02:34:26+00:00
- url: https://github.com/grafana/loki/releases/download/v2.7.1/logcli-linux-arm64.zip
  sha256: 905ccb70e74196b0272bb07b282801ff20fc6b61d83844cb01d8743a8f778b2c
  timestamp: 2022-12-10 02:34:26+00:00
- url: https://github.com/grafana/loki/releases/download/v2.7.2/logcli-linux-amd64.zip
  sha256: ae9d78a6703b4593a973e3add8f11abac54246626a2be2443e400093a3a354ab
  timestamp: 2023-01-26 22:16:31+00:00
- url: https://github.com/grafana/loki/releases/download/v2.7.2/logcli-linux-arm.zip
  sha256: 70c51bb938998c8e61d307abe601da6d45ff7559c7b424e2321685a765a48228
  timestamp: 2023-01-26 22:16:31+00:00
- url: https://github.com/grafana/loki/releases/download/v2.7.2/logcli-linux-arm64.zip
  sha256: 149e645cc68a38f0ba2316cabd8dce75609ce069b9af73a7a6875298f0e0fcd7
  timestamp: 2023-01-26 22:16:31+00:00
- url: https://github.com/grafana/loki/releases/download/v2.7.3/logcli-linux-amd64.zip
  sha256: d295d510e5eca6f2437acc085aba399ea4274705d1fec436cf916919c75cec45
  timestamp: 2023-02-01 16:20:09+00:00
- url: https://github.com/grafana/loki/releases/download/v2.7.3/logcli-linux-arm.zip
  sha256: c1efd6ddcf451dfef8437f311157b49a9fe7e04bc21ec82ae8a1b3c6b07d426c
  timestamp: 2023-02-01 16:20:09+00:00
- url: https://github.com/grafana/loki/releases/download/v2.7.3/logcli-linux-arm64.zip
  sha256: fb06d4040609a38d6f23eab8664af8935452c191a21ff5961ee1a13132e7cabf
  timestamp: 2023-02-01 16:20:09+00:00
- url: https://github.com/grafana/loki/releases/download/v2.7.4/logcli-linux-amd64.zip
  sha256: 6ad831b3c350f86f4dc30fb09bfbda330fe7575b0658c2110178e81bd42c5327
  timestamp: 2023-02-24 22:16:01+00:00
- url: https://github.com/grafana/loki/releases/download/v2.7.4/logcli-linux-arm.zip
  sha256: eb5fafed57376c961154be285ff6ae7534725291618144971e7e56ccf0e109cc
  timestamp: 2023-02-24 22:16:01+00:00
- url: https://github.com/grafana/loki/releases/download/v2.7.4/logcli-linux-arm64.zip
  sha256: a17401becad1195bd31186b52fad95681cefba78f5538a7ec309da4d39680077
  timestamp: 2023-02-24 22:16:01+00:00

Badge

WakeMeOps

[![WakeMeOps](https://docs.wakemeops.com/badges/logcli.svg)](https://docs.wakemeops.com/packages/logcli)
<a href="https://docs.wakemeops.com/packages/logcli">
  <img src="https://docs.wakemeops.com/badges/logcli.svg"/>
</a>
.. image:: https://docs.wakemeops.com/badges/logcli.svg
:target: https://docs.wakemeops.com/packages/logcli