Skip to content
Back to skills

Quickstart

ASecurity

Use this skill when the user wants to validate a promtail config, dry-run a Loki log-shipping agent, or forward local logs to Grafana Loki.

  • 58 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 8, 2026
devopsgobashdockerkubernetesawsgcpgit

Security analysis

A96/100
  • mediumUses curl or wget to download content

Pro shows the line behind each finding and how to fix it

Scanned November 8, 2026

npx -y skills add javimosch/supercli --skill quickstart --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Quickstart?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Quickstart
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/javimosch-quickstart-a4fe776c/badge)](https://www.skillsdirectory.com/skills/javimosch-quickstart-a4fe776c)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: promtail
description: Use this skill when the user wants to validate a promtail config, dry-run a Loki log-shipping agent, or forward local logs to Grafana Loki.
---

# Promtail Plugin

Promtail is the log shipping agent for Grafana Loki. It discovers targets (files, systemd journal, syslog, docker), applies relabeling and pipeline stages, and pushes entries to Loki. Uses single-dash Go-style flags (`-config.file`, not `--config.file`).

## Commands

### Introspection
- `promtail self version` — Version (runs `promtail -version`)
- `promtail config print` — Resolved config to stderr (`-print-config-stderr`)
- `promtail config dryrun` — `-dry-run`: parse config, list matched files/targets, exit

### Agent
- `promtail agent run` — Run the agent; pass `-config.file <path>` via passthrough
- `promtail _ _` — Passthrough for any flag

## Usage Examples

- "Dry-run my promtail config and show which log files it picks up"
- "Print the effective promtail config"
- "Start promtail with config.yaml and the journal target"

## Installation

```bash
curl -O -L https://github.com/grafana/loki/releases/latest/download/promtail-linux-amd64.zip
unzip promtail-linux-amd64.zip
chmod +x promtail-linux-amd64 && mv promtail-linux-amd64 ~/.local/bin/promtail
```

## Examples

```bash
promtail -version
promtail -config.file promtail.yaml -dry-run -inspect
promtail -config.file promtail.yaml -log.level debug
promtail -config.file promtail.yaml -server.http.listen-port 9080 &
```

## Key Features

- `-dry-run` + `-inspect` shows discovered targets and sample parsed entries — validate before shipping
- Pipeline stages: regex, json, logfmt, multiline, labels, metrics
- Targets: static files, journald, syslog, kubernetes, docker, GCP/AWS
- Positions file tracks read offsets so restarts resume without reshipping

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in devops →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.