Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ le projet suit SemVer.

## [Non publié]

### Évolutions

- Sortie `loki` : avertissement de cardinalité des labels (#21, critère
manquant relevé par l'audit du 04/11). À la construction quand un
label référence un champ qui varie à chaque événement
(`CHAMPS_FORTE_CARDINALITE`), puis une fois par label au-delà de
`SEUIL_CARDINALITE` (100) valeurs distinctes vues.

### Documentation

- README largement repris (#117, suite de #115) : architecture, démarrage
Expand Down
16 changes: 15 additions & 1 deletion docs/sorties.md
Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,21 @@ Particularités :
élément (`accuse_par_evenement=False`) : 2xx = lot ingéré ; 400 =
permanent (DLQ si configurée) ; réseau, 429, 5xx = transitoire,
retenté puis rendu à l'appelant (ou DLQ avec `dlq_transitoires`) ;
- **multi-tenant** : `tenant_id` devient l'en-tête `X-Scope-OrgID`.
- **multi-tenant** : `tenant_id` devient l'en-tête `X-Scope-OrgID` ;
- **cardinalité des labels** : chaque jeu de labels distinct est un flux
que Loki indexe et garde en mémoire. La sortie journalise un
avertissement (`WARNING`, sans bloquer) :
- à la construction, quand un label référence un champ qui varie à
chaque événement : `@timestamp`, `message`, identifiants (`id`,
`uuid`, `*_id`, `trace_id`…), `pid`, adresses IP et ports, `url`,
`path`, `query`, `user_agent`, `duration`, `bytes`… (liste complète :
`CHAMPS_FORTE_CARDINALITE` dans `outputs/loki.py`, comparée au
dernier segment du nom, `%{[client][ip]}` → `ip`) ;
- à l'exécution, une seule fois par label, quand il dépasse
`SEUIL_CARDINALITE` (100) valeurs distinctes ; le suivi est borné à
ce seuil puis abandonné pour ce label.

Ces champs restent consultables dans la ligne de log (LogQL `| json`).

Santé : `health()` interroge `GET /ready` (200 quand Loki accepte des
écritures).
Expand Down
10 changes: 9 additions & 1 deletion lang/ar_AR.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: RsysLogstach\n"
"Report-Msgid-Bugs-To: https://github.com/Mathilde-Team/RsysLogstach/issues\n"
"POT-Creation-Date: 2026-11-04 21:47+0000\n"
"POT-Creation-Date: 2026-11-04 22:26+0000\n"
"PO-Revision-Date: 2026-10-24 17:02+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
Expand Down Expand Up @@ -381,6 +381,14 @@ msgstr ""
msgid "@timestamp {} illisible, heure d'envoi utilisée"
msgstr ""

#: src/pystashtemplate/outputs/loki.py
msgid "sortie loki : label {} sur {}, champ à forte cardinalité (un flux par valeur)"
msgstr ""

#: src/pystashtemplate/outputs/loki.py
msgid "sortie loki : label {} à plus de {} valeurs distinctes, cardinalité trop forte"
msgstr ""

#: src/pystashtemplate/outputs/lotisseur.py
msgid "arrêt demandé mais le lotisseur n'a jamais démarré"
msgstr ""
Expand Down
10 changes: 9 additions & 1 deletion lang/bn_BD.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: RsysLogstach\n"
"Report-Msgid-Bugs-To: https://github.com/Mathilde-Team/RsysLogstach/issues\n"
"POT-Creation-Date: 2026-11-04 21:47+0000\n"
"POT-Creation-Date: 2026-11-04 22:26+0000\n"
"PO-Revision-Date: 2026-10-24 17:02+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
Expand Down Expand Up @@ -381,6 +381,14 @@ msgstr ""
msgid "@timestamp {} illisible, heure d'envoi utilisée"
msgstr ""

#: src/pystashtemplate/outputs/loki.py
msgid "sortie loki : label {} sur {}, champ à forte cardinalité (un flux par valeur)"
msgstr ""

#: src/pystashtemplate/outputs/loki.py
msgid "sortie loki : label {} à plus de {} valeurs distinctes, cardinalité trop forte"
msgstr ""

#: src/pystashtemplate/outputs/lotisseur.py
msgid "arrêt demandé mais le lotisseur n'a jamais démarré"
msgstr ""
Expand Down
10 changes: 9 additions & 1 deletion lang/cs_CZ.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: RsysLogstach\n"
"Report-Msgid-Bugs-To: https://github.com/Mathilde-Team/RsysLogstach/issues\n"
"POT-Creation-Date: 2026-11-04 21:47+0000\n"
"POT-Creation-Date: 2026-11-04 22:26+0000\n"
"PO-Revision-Date: 2026-10-24 17:02+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
Expand Down Expand Up @@ -381,6 +381,14 @@ msgstr ""
msgid "@timestamp {} illisible, heure d'envoi utilisée"
msgstr ""

#: src/pystashtemplate/outputs/loki.py
msgid "sortie loki : label {} sur {}, champ à forte cardinalité (un flux par valeur)"
msgstr ""

#: src/pystashtemplate/outputs/loki.py
msgid "sortie loki : label {} à plus de {} valeurs distinctes, cardinalité trop forte"
msgstr ""

#: src/pystashtemplate/outputs/lotisseur.py
msgid "arrêt demandé mais le lotisseur n'a jamais démarré"
msgstr ""
Expand Down
10 changes: 9 additions & 1 deletion lang/da_DK.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: RsysLogstach\n"
"Report-Msgid-Bugs-To: https://github.com/Mathilde-Team/RsysLogstach/issues\n"
"POT-Creation-Date: 2026-11-04 21:47+0000\n"
"POT-Creation-Date: 2026-11-04 22:26+0000\n"
"PO-Revision-Date: 2026-10-24 17:02+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
Expand Down Expand Up @@ -381,6 +381,14 @@ msgstr ""
msgid "@timestamp {} illisible, heure d'envoi utilisée"
msgstr ""

#: src/pystashtemplate/outputs/loki.py
msgid "sortie loki : label {} sur {}, champ à forte cardinalité (un flux par valeur)"
msgstr ""

#: src/pystashtemplate/outputs/loki.py
msgid "sortie loki : label {} à plus de {} valeurs distinctes, cardinalité trop forte"
msgstr ""

#: src/pystashtemplate/outputs/lotisseur.py
msgid "arrêt demandé mais le lotisseur n'a jamais démarré"
msgstr ""
Expand Down
10 changes: 9 additions & 1 deletion lang/de_DE.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: RsysLogstach\n"
"Report-Msgid-Bugs-To: https://github.com/Mathilde-Team/RsysLogstach/issues\n"
"POT-Creation-Date: 2026-11-04 21:47+0000\n"
"POT-Creation-Date: 2026-11-04 22:26+0000\n"
"PO-Revision-Date: 2026-10-24 17:02+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
Expand Down Expand Up @@ -381,6 +381,14 @@ msgstr ""
msgid "@timestamp {} illisible, heure d'envoi utilisée"
msgstr ""

#: src/pystashtemplate/outputs/loki.py
msgid "sortie loki : label {} sur {}, champ à forte cardinalité (un flux par valeur)"
msgstr ""

#: src/pystashtemplate/outputs/loki.py
msgid "sortie loki : label {} à plus de {} valeurs distinctes, cardinalité trop forte"
msgstr ""

#: src/pystashtemplate/outputs/lotisseur.py
msgid "arrêt demandé mais le lotisseur n'a jamais démarré"
msgstr ""
Expand Down
10 changes: 9 additions & 1 deletion lang/el_GR.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: RsysLogstach\n"
"Report-Msgid-Bugs-To: https://github.com/Mathilde-Team/RsysLogstach/issues\n"
"POT-Creation-Date: 2026-11-04 21:47+0000\n"
"POT-Creation-Date: 2026-11-04 22:26+0000\n"
"PO-Revision-Date: 2026-10-24 17:02+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
Expand Down Expand Up @@ -381,6 +381,14 @@ msgstr ""
msgid "@timestamp {} illisible, heure d'envoi utilisée"
msgstr ""

#: src/pystashtemplate/outputs/loki.py
msgid "sortie loki : label {} sur {}, champ à forte cardinalité (un flux par valeur)"
msgstr ""

#: src/pystashtemplate/outputs/loki.py
msgid "sortie loki : label {} à plus de {} valeurs distinctes, cardinalité trop forte"
msgstr ""

#: src/pystashtemplate/outputs/lotisseur.py
msgid "arrêt demandé mais le lotisseur n'a jamais démarré"
msgstr ""
Expand Down
10 changes: 9 additions & 1 deletion lang/en_US.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: RsysLogstach\n"
"Report-Msgid-Bugs-To: https://github.com/Mathilde-Team/RsysLogstach/issues\n"
"POT-Creation-Date: 2026-11-04 21:47+0000\n"
"POT-Creation-Date: 2026-11-04 22:26+0000\n"
"PO-Revision-Date: 2026-10-24 17:02+0000\n"
"Last-Translator: deusyv\n"
"Language-Team: English\n"
Expand Down Expand Up @@ -381,6 +381,14 @@ msgstr "kafka output: user is required with SASL"
msgid "@timestamp {} illisible, heure d'envoi utilisée"
msgstr "unreadable @timestamp {}, send time used instead"

#: src/pystashtemplate/outputs/loki.py
msgid "sortie loki : label {} sur {}, champ à forte cardinalité (un flux par valeur)"
msgstr ""

#: src/pystashtemplate/outputs/loki.py
msgid "sortie loki : label {} à plus de {} valeurs distinctes, cardinalité trop forte"
msgstr ""

#: src/pystashtemplate/outputs/lotisseur.py
msgid "arrêt demandé mais le lotisseur n'a jamais démarré"
msgstr "shutdown requested but the lotisseur was never started"
Expand Down
10 changes: 9 additions & 1 deletion lang/fa_IR.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: RsysLogstach\n"
"Report-Msgid-Bugs-To: https://github.com/Mathilde-Team/RsysLogstach/issues\n"
"POT-Creation-Date: 2026-11-04 21:47+0000\n"
"POT-Creation-Date: 2026-11-04 22:26+0000\n"
"PO-Revision-Date: 2026-10-24 17:02+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
Expand Down Expand Up @@ -381,6 +381,14 @@ msgstr ""
msgid "@timestamp {} illisible, heure d'envoi utilisée"
msgstr ""

#: src/pystashtemplate/outputs/loki.py
msgid "sortie loki : label {} sur {}, champ à forte cardinalité (un flux par valeur)"
msgstr ""

#: src/pystashtemplate/outputs/loki.py
msgid "sortie loki : label {} à plus de {} valeurs distinctes, cardinalité trop forte"
msgstr ""

#: src/pystashtemplate/outputs/lotisseur.py
msgid "arrêt demandé mais le lotisseur n'a jamais démarré"
msgstr ""
Expand Down
10 changes: 9 additions & 1 deletion lang/fi_FI.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: RsysLogstach\n"
"Report-Msgid-Bugs-To: https://github.com/Mathilde-Team/RsysLogstach/issues\n"
"POT-Creation-Date: 2026-11-04 21:47+0000\n"
"POT-Creation-Date: 2026-11-04 22:26+0000\n"
"PO-Revision-Date: 2026-10-24 17:02+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
Expand Down Expand Up @@ -381,6 +381,14 @@ msgstr ""
msgid "@timestamp {} illisible, heure d'envoi utilisée"
msgstr ""

#: src/pystashtemplate/outputs/loki.py
msgid "sortie loki : label {} sur {}, champ à forte cardinalité (un flux par valeur)"
msgstr ""

#: src/pystashtemplate/outputs/loki.py
msgid "sortie loki : label {} à plus de {} valeurs distinctes, cardinalité trop forte"
msgstr ""

#: src/pystashtemplate/outputs/lotisseur.py
msgid "arrêt demandé mais le lotisseur n'a jamais démarré"
msgstr ""
Expand Down
10 changes: 9 additions & 1 deletion lang/fr_FR.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: RsysLogstach\n"
"Report-Msgid-Bugs-To: https://github.com/Mathilde-Team/RsysLogstach/issues\n"
"POT-Creation-Date: 2026-11-04 21:47+0000\n"
"POT-Creation-Date: 2026-11-04 22:26+0000\n"
"PO-Revision-Date: 2026-10-24 17:02+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
Expand Down Expand Up @@ -381,6 +381,14 @@ msgstr ""
msgid "@timestamp {} illisible, heure d'envoi utilisée"
msgstr ""

#: src/pystashtemplate/outputs/loki.py
msgid "sortie loki : label {} sur {}, champ à forte cardinalité (un flux par valeur)"
msgstr ""

#: src/pystashtemplate/outputs/loki.py
msgid "sortie loki : label {} à plus de {} valeurs distinctes, cardinalité trop forte"
msgstr ""

#: src/pystashtemplate/outputs/lotisseur.py
msgid "arrêt demandé mais le lotisseur n'a jamais démarré"
msgstr ""
Expand Down
10 changes: 9 additions & 1 deletion lang/he_IL.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: RsysLogstach\n"
"Report-Msgid-Bugs-To: https://github.com/Mathilde-Team/RsysLogstach/issues\n"
"POT-Creation-Date: 2026-11-04 21:47+0000\n"
"POT-Creation-Date: 2026-11-04 22:26+0000\n"
"PO-Revision-Date: 2026-10-24 17:02+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
Expand Down Expand Up @@ -381,6 +381,14 @@ msgstr ""
msgid "@timestamp {} illisible, heure d'envoi utilisée"
msgstr ""

#: src/pystashtemplate/outputs/loki.py
msgid "sortie loki : label {} sur {}, champ à forte cardinalité (un flux par valeur)"
msgstr ""

#: src/pystashtemplate/outputs/loki.py
msgid "sortie loki : label {} à plus de {} valeurs distinctes, cardinalité trop forte"
msgstr ""

#: src/pystashtemplate/outputs/lotisseur.py
msgid "arrêt demandé mais le lotisseur n'a jamais démarré"
msgstr ""
Expand Down
10 changes: 9 additions & 1 deletion lang/hi_IN.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: RsysLogstach\n"
"Report-Msgid-Bugs-To: https://github.com/Mathilde-Team/RsysLogstach/issues\n"
"POT-Creation-Date: 2026-11-04 21:47+0000\n"
"POT-Creation-Date: 2026-11-04 22:26+0000\n"
"PO-Revision-Date: 2026-10-24 17:02+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
Expand Down Expand Up @@ -381,6 +381,14 @@ msgstr ""
msgid "@timestamp {} illisible, heure d'envoi utilisée"
msgstr ""

#: src/pystashtemplate/outputs/loki.py
msgid "sortie loki : label {} sur {}, champ à forte cardinalité (un flux par valeur)"
msgstr ""

#: src/pystashtemplate/outputs/loki.py
msgid "sortie loki : label {} à plus de {} valeurs distinctes, cardinalité trop forte"
msgstr ""

#: src/pystashtemplate/outputs/lotisseur.py
msgid "arrêt demandé mais le lotisseur n'a jamais démarré"
msgstr ""
Expand Down
10 changes: 9 additions & 1 deletion lang/hu_HU.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: RsysLogstach\n"
"Report-Msgid-Bugs-To: https://github.com/Mathilde-Team/RsysLogstach/issues\n"
"POT-Creation-Date: 2026-11-04 21:47+0000\n"
"POT-Creation-Date: 2026-11-04 22:26+0000\n"
"PO-Revision-Date: 2026-10-24 17:02+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
Expand Down Expand Up @@ -381,6 +381,14 @@ msgstr ""
msgid "@timestamp {} illisible, heure d'envoi utilisée"
msgstr ""

#: src/pystashtemplate/outputs/loki.py
msgid "sortie loki : label {} sur {}, champ à forte cardinalité (un flux par valeur)"
msgstr ""

#: src/pystashtemplate/outputs/loki.py
msgid "sortie loki : label {} à plus de {} valeurs distinctes, cardinalité trop forte"
msgstr ""

#: src/pystashtemplate/outputs/lotisseur.py
msgid "arrêt demandé mais le lotisseur n'a jamais démarré"
msgstr ""
Expand Down
10 changes: 9 additions & 1 deletion lang/id_ID.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: RsysLogstach\n"
"Report-Msgid-Bugs-To: https://github.com/Mathilde-Team/RsysLogstach/issues\n"
"POT-Creation-Date: 2026-11-04 21:47+0000\n"
"POT-Creation-Date: 2026-11-04 22:26+0000\n"
"PO-Revision-Date: 2026-10-24 17:02+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
Expand Down Expand Up @@ -381,6 +381,14 @@ msgstr ""
msgid "@timestamp {} illisible, heure d'envoi utilisée"
msgstr ""

#: src/pystashtemplate/outputs/loki.py
msgid "sortie loki : label {} sur {}, champ à forte cardinalité (un flux par valeur)"
msgstr ""

#: src/pystashtemplate/outputs/loki.py
msgid "sortie loki : label {} à plus de {} valeurs distinctes, cardinalité trop forte"
msgstr ""

#: src/pystashtemplate/outputs/lotisseur.py
msgid "arrêt demandé mais le lotisseur n'a jamais démarré"
msgstr ""
Expand Down
10 changes: 9 additions & 1 deletion lang/it_IT.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: RsysLogstach\n"
"Report-Msgid-Bugs-To: https://github.com/Mathilde-Team/RsysLogstach/issues\n"
"POT-Creation-Date: 2026-11-04 21:47+0000\n"
"POT-Creation-Date: 2026-11-04 22:26+0000\n"
"PO-Revision-Date: 2026-10-24 17:02+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
Expand Down Expand Up @@ -381,6 +381,14 @@ msgstr ""
msgid "@timestamp {} illisible, heure d'envoi utilisée"
msgstr ""

#: src/pystashtemplate/outputs/loki.py
msgid "sortie loki : label {} sur {}, champ à forte cardinalité (un flux par valeur)"
msgstr ""

#: src/pystashtemplate/outputs/loki.py
msgid "sortie loki : label {} à plus de {} valeurs distinctes, cardinalité trop forte"
msgstr ""

#: src/pystashtemplate/outputs/lotisseur.py
msgid "arrêt demandé mais le lotisseur n'a jamais démarré"
msgstr ""
Expand Down
Loading