Sometimes, for a particular timeframe, we need to merge the captured data. This eliminates analyses on different PCAP files, and after merging, we have only a single file to work with. In Wireshark, we can combine various PCAP files through the Merge... option, as shown in the following screenshot:
![](https://static.packt-cdn.com/products/9781789344523/graphics/assets/6a2f00dc-5b4b-4c4c-921a-d0498cc38988.png)
Using the Merge... option from the File menu, we can merge other files:
![](https://static.packt-cdn.com/products/9781789344523/graphics/assets/bc2457cc-398e-4bef-90c4-8cb0c8faac5f.png)
In the preceding screenshot, we have a final_show-01.cap file open in Wireshark and select the Merge option from the File menu, and we select final_show-02.cap. Pressing the Open button will open a new PCAP file with merged data from both the captures:
![](https://static.packt-cdn.com/products/9781789344523/graphics/assets/058e2671-b73b-4019-a9ef-e8b931ba413e.png)
We can see how easy it was to merge two different PCAP files. Additionally, sometimes, we want to cut down the length from a PCAP file as well. From the preceding screenshot, we can see that we have specifically defined...