Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

21 lines
635 B
Plaintext

# @TEST-DOC: Test Zeek parsing a trace file through the PostgreSQL analyzer.
#
# @TEST-REQUIRES: ${SCRIPTS}/have-spicy
# @TEST-EXEC: zeek -b -Cr ${TRACES}/postgresql/psql-select-now.pcap %INPUT >output
#
# @TEST-EXEC: btest-diff output
@load base/protocols/postgresql
event PostgreSQL::authentication_request(c: connection, identifier: count, data: string) {
print "authentication_request", c$uid, identifier, data;
}
event PostgreSQL::authentication_response(c: connection, data: string) {
print "authentication_response", c$uid, data;
}
event PostgreSQL::authentication_ok(c: connection) {
print "authentication_ok", c$uid;
}