Sign inSign up

danielguerra/tshark-elasticsearch

By danielguerra

Updated over 8 years ago

wireshark, tshark packet decoder output to elasticsearch

Image
1

1.6K

danielguerra/tshark-elasticsearch repository overview

Tshark output to elasticsearch

Wireshark

Wireshark is a network packet decoder.

This image contains the wireshark commandline tool, tshark and a python script that posts the data in elasticsearch

Usage

docker-compose

I strongly advise to use docker-compose

mkdir tshark-elasticsearch
cd tshark-elasticsearch
wget https://raw.githubusercontent.com/danielguerra69/tshark-elasticsearch/master/docker-compose.yml
docker-compose up -d

The compose starts an elasticsearch cluster, kibana and tshark

Copy pcap data to analyze

docker cp /mydir/mypcap.pcap tshark:/data/pcap

Analyze the data

docker-compose exec tshark bash
tshark -r /data/pcap/mypcap.pcap -T ek | tshark2es.py <mytag>

The tag is use to seperate the data, you can use any word.

View the data

Go with your browser to http://:5601

In kibana use the index tshark-* and isotime

Tag summary

Content type

Image

Digest

Size

42.4 MB

Last updated

over 8 years ago

docker pull danielguerra/tshark-elasticsearch