»A while back I sent a patch upstream to tcpdump wh
ich adds support for timed rotation of saved packet data files
Often I'll find that I need to run tcpdump
over a long period of time. The easiest way to avoid having oversized files is
to rotate with the -C option. This approach is fine, but it means
that any sort of basic trend analysis will require a little bit of automated
help. If rotation is done on a time basis, a simple ls -l will
show when traffic peaked or bottomed out. To this end, I authored a patch
which was accepted
upstream.
E.g. Dump 10 minutes worth of data in 60 second files:
tcpdump -G 60 -w timedump -s 0 -C 10
Subscribe to:
Post Comments (Atom)
Post a Comment