zeek/testing/scripts/diff-remove-uids
Robin Sommer cb2cb117d0 Excluding log fields of name mime_type for comparision.
This is because libmagic can return different results depending on
installation.

Note, this still doesn't fix all problems: smtp-entities sets md5
depending on the mime-type returned by libmagic ...
2011-09-09 11:41:03 -07:00

21 lines
280 B
Awk
Executable file

#! /usr/bin/awk -f
#
# A diff canonifier that removes all connection UIDs.
BEGIN { FS="\t"; OFS="\t"; }
column > 0 {
$column = "XXXXXXXXXXX";
}
/^#/ {
for ( i = 0; i < NF; ++i ) {
if ( $i == "uid" )
column = i - 1;
}
}
{ print }