Skip to content

Instantly share code, notes, and snippets.

@menski
Created November 29, 2011 16:20
Show Gist options
  • Save menski/1405395 to your computer and use it in GitHub Desktop.
Save menski/1405395 to your computer and use it in GitHub Desktop.
Replace client IP address in bind log
{
split($6,A,"#")
if (!dict[A[1]])
dict[A[1]] = ++i
$6 = dict[A[1]] "#" A[2]
print $0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment