项目作者: lmangani

项目描述 :
Typesense Demo for PCAP JSON Data
高级语言: JavaScript
项目地址: git://github.com/lmangani/typesense-pcap-demo.git
创建时间: 2021-05-16T09:34:41Z
项目社区:https://github.com/lmangani/typesense-pcap-demo

开源协议:

下载


typesense-pcap-demo

Typesense + Tshark PCAP = Magic!

Requirements

  • nodejs 12.x+
  • docker
  • tshark

Start Typesense

Run a Typesense instance using docker

  1. $ npm install
  2. $ npm run typesenseServer

Configure your server and collection settings using the .env file

Import PCAP Dataset

Create & Import custom PCAP data/schema using tshark (ek json)

  1. $ tshark -T ek -j "port 22" -P -V -x -c 100 | sed '/^{"index/d' > data/pcap.json
  2. $ npm run populateTypesenseIndex

Start App

Bootstrap your Application

  1. $ npm start

Browse to http://localhost:3000 to search and view your PCAP data.

image