Sniffer capture split into multiple files
Posted: Mon Apr 09, 2018 5:22 pm
Hello,
anyone has an idea how to, maybe with some scripting, to let sniffer run and write the captured traffic into multiple files? I'm looking for away to do a tcpdump like packet capturing on RouterOS. I wonder if a script can periodic check the filesize and rename / copy the sofar captured data into a new file with current timestamp or similar, without loosing to much packets during the saving to file / splitting files process. Stopping the sniffer, copy the file to a different folder and renaming it, then restarting the sniffer will probably take too long. Or is there a different way how it can be done?
IIRC i can not modify a running sniffer process to rename the capture file or am i wrong?
Especially for debugging voice traffic it is important for me to capture the traffic unattended without loosing to much packets when the files are going to be splitted once the max filessize has been reached.
Regards,
EntireNet
anyone has an idea how to, maybe with some scripting, to let sniffer run and write the captured traffic into multiple files? I'm looking for away to do a tcpdump like packet capturing on RouterOS. I wonder if a script can periodic check the filesize and rename / copy the sofar captured data into a new file with current timestamp or similar, without loosing to much packets during the saving to file / splitting files process. Stopping the sniffer, copy the file to a different folder and renaming it, then restarting the sniffer will probably take too long. Or is there a different way how it can be done?
IIRC i can not modify a running sniffer process to rename the capture file or am i wrong?
Especially for debugging voice traffic it is important for me to capture the traffic unattended without loosing to much packets when the files are going to be splitted once the max filessize has been reached.
Regards,
EntireNet