I'm using tcpdump for a rotating network traffic capture, and Moloch as a nice viewer for the data. The problem is that tcpdump appends a number to the end of the filename, while Moloch only uses files that end in .pcap.
Is there a way to set up tcpdump to create filenames ending in .pcap?
Using a date format string doesn't work because I need the filenames to repeat (after every 20 files or so).
sudo tcpdump -i eth0 -s 0 -W 4 -G 15 -C 1 -w ./dump.pcap