zeek/auxil/zeekctl/testing/Scripts/diff-cron-stats
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

12 lines
220 B
Bash
Executable File

#! /usr/bin/env bash
#
# Replace columns from zeekctl cron's stats.log
# that are not predictable with Xs.
awk '{
if ( $1 ~ /^[0-9]+\.[0-9]+$/ ) { $1 = "XXXXXXXXXX.XX" }
if ( NF > 4 ) { $5 = "X" }
print
}'