Wireshark – analyzing database response time in pcap files

tcp.len > 1 and tcp.port == 1521
tcpdump tcp port 1521 -s 0 -l -w – | strings | perl -e ‚
while(<>) { chomp; next if /^[^ ]+[ ]*$/;
if(/^(SELECT|UPDATE|DELETE|INSERT|SET|COMMIT|ROLLBACK|CREATE|DROP|ALTER)/i) {
if (defined $q) { print „$q\n“; }
$q=$_;
} else {
$_ =~ s/^[ \t]+//; $q.=“ $_“;
}
}‘

Leave a Reply

You must be logged in to post a comment.