# Best way to load a pcap file into elasticsearch 7.11

**URL:** https://discuss.elastic.co/t/best-way-to-load-a-pcap-file-into-elasticsearch-7-11/266483
**Category:** Elasticsearch
**Created:** [March 7, 2021, 6:18pm UTC](https://discuss.elastic.co/t/best-way-to-load-a-pcap-file-into-elasticsearch-7-11/266483 "2021-03-07T18:18:18Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![humbaw](https://avatars.discourse-cdn.com/v4/letter/h/b5e925/32.png) [@humbaw](https://discuss.elastic.co/u/humbaw)
#### Post date: [March 7, 2021, 6:18pm UTC](https://discuss.elastic.co/t/best-way-to-load-a-pcap-file-into-elasticsearch-7-11/266483/1 "2021-03-07T18:18:18Z")

</div>

Hi. I'm using elasticsearch 7.11 and I would like to ingest a pcap file into elasticsearch and kibana. What would be the best way to do this

I tried using the analyzing network packets guide([Analyzing network packets with Wireshark, Elasticsearch, and Kibana | Elastic](https://www.elastic.co/blog/analyzing-network-packets-with-wireshark-elasticsearch-and-kibana)) but it wouldn't work because the guide is for older versions of elasticsearch.

---

<div class="post-metadata">

### Author: ![ylasri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ylasri/32/86120_2.png) [@ylasri](https://discuss.elastic.co/u/ylasri)
#### Post date: [March 7, 2021, 6:58pm UTC](https://discuss.elastic.co/t/best-way-to-load-a-pcap-file-into-elasticsearch-7-11/266483/2 "2021-03-07T18:58:08Z")

</div>

tshark would be the best way to move with pcap files  
The json generated may be not necessary ready to be bulked into ES latest versions, but i suggest you use logstash to clean the json before ingest it to ES.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [April 4, 2021, 6:58pm UTC](https://discuss.elastic.co/t/best-way-to-load-a-pcap-file-into-elasticsearch-7-11/266483/3 "2021-04-04T18:58:49Z")

</div>

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