secubox-openwrt/package/secubox/secubox-app-mac-guardian/files/etc/crowdsec/parsers/s01-parse/secubox-mac-guardian.yaml
CyberMind-FR 373d77368e feat(mac-guardian): Rename to secubox-app-mac-guardian and add LuCI interface
Rename package folder to follow secubox-app-* convention and add
luci-app-mac-guardian with KISS dashboard: status cards, client table
with trust/block actions, recent alerts, and configuration form.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 16:06:48 +01:00

28 lines
937 B
YAML

onsuccess: next_stage
name: secubox/mac-guardian
description: "Parse SecuBox mac-guardian JSON events"
filter: "evt.Line.Labels.type == 'mac-guardian'"
nodes:
- grok:
apply_on: evt.Line.Raw
expression: "^%{GREEDYDATA:json_raw}$"
statics:
- parsed: json_data
expression: "JsonExtract(evt.Parsed.json_raw, '')"
- filter: "evt.Parsed.json_data != ''"
statics:
- meta: log_type
value: mac_guardian
- meta: service
value: mac-guardian
- meta: source_mac
expression: "JsonExtract(evt.Parsed.json_raw, 'mac')"
- parsed: event_type
expression: "JsonExtract(evt.Parsed.json_raw, 'event')"
- parsed: iface
expression: "JsonExtract(evt.Parsed.json_raw, 'iface')"
- parsed: details
expression: "JsonExtract(evt.Parsed.json_raw, 'details')"
- parsed: timestamp
expression: "JsonExtract(evt.Parsed.json_raw, 'ts')"