Przejdź do treści
Biblioteka skilli
DevOps i chmura · Analiza

log-analysis

/log-analysis

Przeszukuje logi pod kątem przyczyny awarii przez pivot na identyfikatorach korelacji, zawężanie okna czasu i zapytania do pól strukturalnych zamiast przewijania.

Repozytorium
AI-SKILLS ↗
Licencja
MIT
Ostatnia zmiana repozytorium
05.09.2026

Ocena i bezpieczeństwo

90/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść25 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 05.09.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Przeszukuje logi pod kątem przyczyny awarii przez pivot na identyfikatorach korelacji, zawężanie okna czasu i zapytania do pól strukturalnych zamiast przewijania.

Oryginalny opis (EN)

Mine logs for the cause of a failure by pivoting on correlation ids, clamping the time window, and querying structured fields instead of scrolling. Use when production broke and the logs are the only record of what the system actually did.

Jak działa

  1. Method
  2. Checks
  3. Boundaries
Sekcje z nagłówków SKILL.md, w oryginale · 46 linii, 375 słów
Podgląd SKILL.md
---
name: log-analysis
description: Mine logs for the cause of a failure by pivoting on correlation ids, clamping the time window, and querying structured fields instead of scrolling. Use when production broke and the logs are the only record of what the system actually did.
---

# Log analysis

Logs capture everything the system did and almost none of it bears on the bug
in front of you. Scrolling for red text surfaces the loudest line, which is
usually a downstream victim rather than the trigger. A method narrows by
identity and time until only the failing request is left on the screen.

## Method

1. **Pivot on an identifier before a keyword.** Lift the request id, trace id,
   or order id from the user report or the error tracker, then query for it
   alone: `jq 'select(.request_id=="req_8f3a")'` or Loki `{app="api"} | json |
   request_id="req_8f3a"`. One id collapses the haystack into a single thread.
2. **Clamp the window to the incident.** Pass `--since` and `--until` a couple
   of minutes on each side of the first symptom, or drag the Grafana time
   picker onto the deploy. A day-wide window drowns the signal in unrelated
   traffic.
3. **Read forward from the first divergence.** Sort ascending and find where
   the error rate leaves baseline. The 500s at the top of the tail are the
   cascade; the connection reset thirty seconds earlier is the cause.
4. **Match fields, not substrings.** On JSON logs, filter `level>="error" and
   status>=500 and route="/checkout"`. Grepping `fail` misses `failure` and
   `err` and matches those letters inside unrelated words.
5. **Merge services on the shared id.** Carry the same correlation id from the
   gateway through the API to the worker and interleave every line by
   timestamp. The gap between "received" and "handler start" is where the
   latency actually sat.
6. **Aggregate before you conclude.** Run `| stats count by error_code, host`.
   Every error landing on one host is a sick node, not a sick code path.
   Cardinality tells you scope that no single line can.

## Checks

- Can you name the earliest line where behavior left normal, with its exact
  timestamp?
- Did the cause come from a filter on id and field, or from reading by eye?
- Does your merged timeline touch every service the request passed through?

## Boundaries

Log analysis reconstructs what was written down and is blind to what was never
logged. When the failing hop lives between services rather than inside one,
move to distributed-tracing. Long-run trends belong on a dashboard, not in a
line-by-line hunt.

Wersje

RepozytoriumWynikLicencja
Ta strona · Amey-Thakur/AI-SKILLS90MIT
OKHP3/skillz100MIT
andreibesleaga/gabbe100CC-BY-4.0
nvidia/nvidia-resiliency-ext100Apache-2.0
autohandai/community-skills100Apache-2.0
nailshakurov/logzip100MIT
312362115/claude100MIT
winhok/testkit90MIT

Migawka bazy z 28.10.2026 · wersja paczki 10a035f00184 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 90oncall
    Prowadzi triaż awarii produkcji: logi po ID korelacji, zapytania do bazy tylko do odczytu, ślady i wydania, z raportem przyczyny.
  • 100structured-logging-design
    Pomaga projektować schematy logów: wybór JSON lub tekstu, identyfikatory korelacji między usługami, redakcja danych osobowych, kontrola kosztów wolumenu logów i integracja z OpenTelemetry.
  • 90observability
    Wdraża obserwowalność niezależną od stosu: ustrukturyzowane logi, identyfikatory korelacji, metryki i ślady bez danych osobowych i sekretów w logach, by problem z produkcji dało się prześledzić.
  • 100aliyun-sls-log-query
    Przeszukuje i diagnozuje logi w Alibaba Cloud Log Service (SLS) składnią query|analysis i SDK Pythona: wyszukiwanie w oknie czasu, analiza błędów i szukanie przyczyn.
  • 100incident-triage
    Cofa się od objawu produkcyjnego do przyczyny pod presją czasu: ślad stosu do kodu, korelacja identyfikatorów między usługami, zawężanie logów i metryk oraz związek z ostatnimi zmianami.
  • 100logging
    Wdraża ustrukturyzowane logowanie: logi JSON, poziomy, identyfikatory korelacji, redakcję danych osobowych, agregację logów, retencję oraz potoki ELK, Loki i CloudWatch.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.