Skip to content

Instantly share code, notes, and snippets.

@klehigh
Created August 18, 2014 04:19
Show Gist options
  • Save klehigh/2552e69fb2feb098c2d8 to your computer and use it in GitHub Desktop.
Save klehigh/2552e69fb2feb098c2d8 to your computer and use it in GitHub Desktop.
add peer data to bro conn.log
# add peer data to connection records
redef record Conn::Info += {
peer: string &log &optional;
};
event connection_state_remove(c: connection) {
if ( c?$conn )
c$conn$peer = peer_description;
}
redef record Reporter::Info += {
peer: string &log &optional;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment