Reading packet from a lot of .pcap file?


(Alan Wang) #1

Hello everyone,

I have a lot of .pcap file in one folder (~10,000). I want import this data to elasticsearch.

As I know, flag "-I" can import just one .pcap file at one time.

Is there any way I can do this? Thanks a lot!


(Pier-Hugues Pellerin) #2

@wangyufeng0615 Not out of the box, we mostly use -I for development purpose, but you can write a simple shell script to loop through all the files.

Also make sure you use -t, so packetbeat read the file as fast as possible.

  -t, --t                    Read packets as fast as possible, without sleeping

(Alan Wang) #3

Thank you for you advice! @pierhugues
I will try to write a shell script.


(system) #4

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.