mendhak / mendhak/docker-http-https-echo
Option to change log format to JSON
Nessuno ha ancora preso questa issue.
- Lingua principale
- Shell
- Stelle
- 792
- Fork
- 152
- Merge medio
- 3g 18h
- PR unite (30g)
- 3
Descrizione
First off, thank you for putting in the work. This is a super helpful project.
I would appreciate it if it was possible to enable an option besides LOG_WITHOUT_NEWLINE and DISABLE_REQUEST_LOGS to have one line per request in the log output formatted as JSON.
One of the reasons is that I don't use the logs on the host machine directly. They might get scraped and processed out of order by Loki, so they might not end up next to each other. The second reason is that it would be simpler to parse them when they had the same format.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia individuando le opzioni esistenti LOG_WITHOUT_NEWLINE e DISABLE_REQUEST_LOGS e tracciando il percorso di logging delle requests. Aggiungi un formato JSON selezionabile che emetta una riga per request, quindi verifica che l'output sia analizzabile in modo coerente e conservi le informazioni di log richieste.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- docker, shell
- Ambito
- observability
- Tipo di issue
- Funzionalità
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100