higher level logging; sqlite db for logs

This commit is contained in:
Ludwig Lehnert
2026-08-01 04:36:25 +00:00
parent 17f5ef8560
commit fdd5649198
19 changed files with 1092 additions and 377 deletions
+2 -7
View File
@@ -13,8 +13,7 @@ mkdir -p \
/data/private/dave \
/data/private/eve \
/data/fslogix/alice_S-1-5-21-111-222-333-1101 \
/data/fslogix/carol_S-1-5-21-111-222-333-1103 \
/state/audit
/data/fslogix/carol_S-1-5-21-111-222-333-1103
printf 'Quarter,Forecast\nQ1,120000\nQ2,135000\n' > /data/groups/data/Finance/Reports/forecast.csv
printf '# Architecture\n\nPreview design notes.\n' > /data/groups/data/Engineering/Designs/architecture.md
@@ -29,9 +28,5 @@ dd if=/dev/zero of=/data/groups/data/Finance/Reports/history.bin bs=1M count="$s
dd if=/dev/zero of=/data/groups/data/Engineering/Designs/models.bin bs=1M count="$seed_mb" status=none
dd if=/dev/zero of=/data/fslogix/alice_S-1-5-21-111-222-333-1101/profile-data.bin bs=1M count="$seed_mb" status=none
old_day=$(date -u -d '2 days ago' +%F)
printf '%s\n' "{\"action\":\"read\",\"client\":\"archived-client\",\"clientIp\":\"192.0.2.50\",\"ingestedAt\":\"${old_day}T12:00:00+00:00\",\"operation\":\"read\",\"path\":\"Finance/Reports/archive.csv\",\"result\":\"OK\",\"share\":\"Data\",\"source\":\"log.archived-client\",\"success\":true,\"timestamp\":\"${old_day}T12:00:00+00:00\",\"user\":\"archived-user\"}" \
> "/state/audit/${old_day}.jsonl"
touch -d '2 days ago' "/state/audit/${old_day}.jsonl"
printf '[preview-seed] Seeded group, private, FSLogix, and historical audit data.\n'
printf '[preview-seed] Seeded group, private, and FSLogix data.\n'