Ready-made color tag presets for HTTP/HTTPS access logs

A '+ Preset…' menu in Settings > Filters adds groups of tags for status
codes, methods, probes, bots and TLS/proxy errors (nginx, Apache, Traefik,
Caddy, HAProxy). A regex group named hl colors only that part of a match,
and tags get an optional label shown in place of the pattern.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
cedricandClaude Opus 5.5 committed 2026-10-03 15:16:44 +02:00
1 parent 7b139e8931
commit be58284916
6 files changed
+89 -4

No files matched your search

+2
View File
@@ -17,6 +17,7 @@ import (
type Tag struct {
ID string `json:"id"`
Pattern string `json:"pattern"`
Label string `json:"label,omitempty"` // shown instead of the pattern (presets)
Color string `json:"color"`
WholeWord bool `json:"wholeWord"`
CaseSensitive bool `json:"caseSensitive"`
@@ -72,6 +73,7 @@ var (
func (t *Tag) validate() error {
t.Pattern = strings.TrimSpace(t.Pattern)
t.Label = strings.TrimSpace(t.Label)
if t.Pattern == "" {
return &codedError{code: "pattern_required", msg: "the keyword is required"}
}