Been trying to track down exactly what an intermittently super noisy host is doing. Lacking netflow in this environment (and wanting an actual packet capture of the device in the act) we were thrown back on using a SPAN port and a laptop running tcpdump.
It’s well known that one can use -G to limit tcpdump to collecting for a certain number of seconds. Somewhat less well known is the fact that you can use formatted string directives in the filename that is passed as a parameter to the -w argument.
I asked the NOC team to do this:
in order to give us a nice, ISO8601-filename-formated time sequence of 5 minute packet captures.
But we can run out of space on a laptop SSD fairly quickly. 100 mbit/second is 1TByte/day, in round numbers.
We only care about the captures where there’s comparatively a large amount of traffic. So periodically blowing away everything but the largest 15 5-minute pcaps should get us the interesting ones.